aboutsummaryrefslogtreecommitdiff
path: root/wizard/WizardCreateDevice1.qml
diff options
context:
space:
mode:
authormmbyday <mmbyday@protonmail.com>2019-04-30 20:53:17 -0700
committermmbyday <mmbyday@protonmail.com>2019-05-02 12:11:21 -0700
commitc151e5e7a1104e0230f265a3c367dea5f772296c (patch)
tree5bd66e338c7e44d3f60617545ac918efbe7b0d1d /wizard/WizardCreateDevice1.qml
parent97cd215491a44c753ee1450712b3b8d93efdcc37 (diff)
downloadmonzero-gui-c151e5e7a1104e0230f265a3c367dea5f772296c.tar.gz
monzero-gui-c151e5e7a1104e0230f265a3c367dea5f772296c.tar.xz
monzero-gui-c151e5e7a1104e0230f265a3c367dea5f772296c.zip
wizardcreatedevice: cleanup layout
Diffstat (limited to 'wizard/WizardCreateDevice1.qml')
-rw-r--r--wizard/WizardCreateDevice1.qml43
1 files 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: "<major>:<minor>"
@@ -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: {