From cb45a37c9534ba18fbc7ede2439d81dfbe601210 Mon Sep 17 00:00:00 2001 From: Ilya Kitaev Date: Wed, 27 Jan 2016 22:06:38 +0300 Subject: [PATCH 1/2] Language files added to resources --- monero-core.pro | 4 ---- qml.qrc | 11 +++++++++++ wizard/WizardWelcome.qml | 4 ++-- 3 files changed, 13 insertions(+), 6 deletions(-) diff --git a/monero-core.pro b/monero-core.pro index f2e24e46..75812a7e 100644 --- a/monero-core.pro +++ b/monero-core.pro @@ -28,7 +28,3 @@ QML_IMPORT_PATH = # Default rules for deployment. include(deployment.pri) -# copy language files (xml and images) to the output directory -copydata.commands = $(COPY_DIR) $$shell_path($$PWD/lang) $$shell_path($$DESTDIR/lang) -QMAKE_EXTRA_TARGETS += copydata -POST_TARGETDEPS += copydata diff --git a/qml.qrc b/qml.qrc index aeedc37a..e2e774af 100644 --- a/qml.qrc +++ b/qml.qrc @@ -96,5 +96,16 @@ wizard/WizardDonation.qml wizard/WizardFinish.qml wizard/WizardPasswordInput.qml + lang/languages.xml + lang/flags/bangladesh.png + lang/flags/brazil.png + lang/flags/china.png + lang/flags/german.png + lang/flags/india.png + lang/flags/palestine.png + lang/flags/rpa.png + lang/flags/russia.png + lang/flags/uk.png + lang/flags/usa.png diff --git a/wizard/WizardWelcome.qml b/wizard/WizardWelcome.qml index f627e88d..208a7994 100644 --- a/wizard/WizardWelcome.qml +++ b/wizard/WizardWelcome.qml @@ -75,7 +75,7 @@ Item { XmlListModel { id: languagesModel - source: "file:///" + applicationDirectory + "/lang/languages.xml" + source: "/lang/languages.xml" query: "/languages/language" XmlRole { name: "name"; query: "@name/string()" } @@ -113,7 +113,7 @@ Item { color: gridView.currentIndex === index ? "#DBDBDB" : "#FFFFFF" Image { anchors.centerIn: parent - source: "file:///" + applicationDirectory + flag + source: flag } } From ef66f9bf162292dd1da9c74fad31e14a92c35494 Mon Sep 17 00:00:00 2001 From: Ilya Kitaev Date: Wed, 27 Jan 2016 22:16:48 +0300 Subject: [PATCH 2/2] Wizard: bugfix for "next" button on password page --- wizard/WizardMain.qml | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/wizard/WizardMain.qml b/wizard/WizardMain.qml index 905e0c5f..6cb26356 100644 --- a/wizard/WizardMain.qml +++ b/wizard/WizardMain.qml @@ -62,11 +62,9 @@ Rectangle { // disallow "next" button until passwords match if (pages[currentPage] === passwordPage) { - nextButton.visible = passwordPage.passwordValid - } - - // display settings summary - if (pages[currentPage] === finishPage) { + nextButton.visible = passwordPage.passwordValid; + } else if (pages[currentPage] === finishPage) { + // display settings summary finishPage.updateSettingsSummary(); nextButton.visible = false } else {