From c151e5e7a1104e0230f265a3c367dea5f772296c Mon Sep 17 00:00:00 2001 From: mmbyday Date: Tue, 30 Apr 2019 20:53:17 -0700 Subject: [PATCH] wizardcreatedevice: cleanup layout --- wizard/WizardCreateDevice1.qml | 43 +++++++++++++++------------------- 1 file changed, 19 insertions(+), 24 deletions(-) diff --git a/wizard/WizardCreateDevice1.qml b/wizard/WizardCreateDevice1.qml index b73a4fcc..9a2191bc 100644 --- a/wizard/WizardCreateDevice1.qml +++ b/wizard/WizardCreateDevice1.qml @@ -46,8 +46,9 @@ Rectangle { ListModel { id: deviceNameModel - ListElement { column1: "Ledger"; column2: "Ledger"; } - ListElement { column1: "Trezor"; column2: "Trezor"; } + ListElement { column1: qsTr("Choose your hardware device"); column2: "";} + ListElement { column1: "Ledger"; column2: "Ledger";} + ListElement { column1: "Trezor"; column2: "Trezor";} } function update(){ @@ -81,7 +82,6 @@ Rectangle { ColumnLayout { spacing: 0 - Layout.topMargin: 10 Layout.fillWidth: true @@ -112,9 +112,7 @@ Rectangle { } ColumnLayout { - Layout.topMargin: 10 Layout.fillWidth: true - spacing: 20 MoneroComponents.LineEdit { @@ -131,10 +129,24 @@ Rectangle { text: "0" } + MoneroComponents.StandardDropdown { + id: deviceNameDropdown + dataModel: deviceNameModel + Layout.fillWidth: true + Layout.topMargin: 6 + z: 3 + } + + CheckBox2 { + id: showAdvancedCheckbox + checked: false + text: qsTr("Advanced options") + translationManager.emptyString + } + MoneroComponents.LineEdit { id: lookahead Layout.fillWidth: true - + visible: showAdvancedCheckbox.checked labelText: qsTr("Subaddress lookahead (optional)") + translationManager.emptyString labelFontSize: 14 placeholderText: ":" @@ -143,23 +155,6 @@ Rectangle { } } - ColumnLayout { - spacing: 0 - - Layout.topMargin: 10 - Layout.fillWidth: true - z: 3 - - ColumnLayout{ - MoneroComponents.StandardDropdown { - id: deviceNameDropdown - dataModel: deviceNameModel - Layout.fillWidth: true - Layout.topMargin: 6 - } - } - } - TextArea { id: errorMsg text: qsTr("Error writing wallet from hardware device. Check application logs.") + translationManager.emptyString; @@ -184,7 +179,7 @@ Rectangle { WizardNav { progressSteps: 4 progress: 1 - btnNext.enabled: walletInput.verify(); + btnNext.enabled: walletInput.verify() && wizardCreateDevice1.deviceName; btnPrev.text: qsTr("Back to menu") + translationManager.emptyString btnNext.text: qsTr("Create wallet") + translationManager.emptyString onPrevClicked: {