Wizard refactoring

This commit is contained in:
Ilya Kitaev
2016-07-21 13:56:17 +03:00
parent ecf844120b
commit e5d5a6082f
11 changed files with 179 additions and 141 deletions

View File

@@ -42,6 +42,10 @@ Item {
//! function called each time we display this page
function onPageOpened(settingsOblect) {
checkNextButton()
}
function onPageClosed(settingsObject) {
settingsObject['account_name'] = uiItem.accountNameText
settingsObject['words'] = uiItem.wordsTexttext
@@ -49,6 +53,11 @@ Item {
return true;
}
function checkNextButton() {
var wordsArray = cleanWordsInput(uiItem.wordsTextItem.memoText).split(" ");
wizard.nextButton.enabled = wordsArray.length === 25;
}
//! function called each time we hide this page
//