started integrating wallet library

This commit is contained in:
Ilya Kitaev
2016-02-23 18:59:26 +03:00
parent 921d16a458
commit 1195a89d06
12 changed files with 105 additions and 15 deletions

View File

@@ -46,6 +46,12 @@ Item {
settingsObject['wallet_path'] = uiItem.walletPath
}
function createWallet(settingsObject) {
// print ("Language: " + settingsObject.language);
var wallet = walletManager.createWallet(uiItem.accountNameText, "", settingsObject.language);
uiItem.wordsTextItem.memoText = wallet.seed
}
WizardManageWalletUI {
id: uiItem
titleText: qsTr("A new wallet has been created for you")
@@ -53,6 +59,5 @@ Item {
wordsTextItem.clipboardButtonVisible: true
wordsTextItem.tipTextVisible: true
wordsTextItem.memoTextReadOnly: true
}
}

View File

@@ -99,7 +99,9 @@ Rectangle {
currentPath = "create_wallet"
pages = paths[currentPath]
currentPage = pages.indexOf(createWalletPage)
createWalletPage.createWallet(settings)
handlePageChanged()
}
function openRecoveryWalletPage() {

View File

@@ -25,7 +25,7 @@ Column {
TextEdit {
id: memoTextInput
textMargin: 8
text: "bound class paint gasp task soul forgot past pleasure physical circle appear shore bathroom glove women crap busy beauty bliss idea give needle burden"
text: ""
font.family: "Arial"
font.pointSize: 16
wrapMode: TextInput.Wrap