mirror of
https://github.com/monero-project/monero-gui.git
synced 2024-11-16 15:58:11 +00:00
wizardcreatedevice: cleanup layout
This commit is contained in:
parent
97cd215491
commit
c151e5e7a1
1 changed files with 19 additions and 24 deletions
|
@ -46,8 +46,9 @@ Rectangle {
|
||||||
|
|
||||||
ListModel {
|
ListModel {
|
||||||
id: deviceNameModel
|
id: deviceNameModel
|
||||||
ListElement { column1: "Ledger"; column2: "Ledger"; }
|
ListElement { column1: qsTr("Choose your hardware device"); column2: "";}
|
||||||
ListElement { column1: "Trezor"; column2: "Trezor"; }
|
ListElement { column1: "Ledger"; column2: "Ledger";}
|
||||||
|
ListElement { column1: "Trezor"; column2: "Trezor";}
|
||||||
}
|
}
|
||||||
|
|
||||||
function update(){
|
function update(){
|
||||||
|
@ -81,7 +82,6 @@ Rectangle {
|
||||||
|
|
||||||
ColumnLayout {
|
ColumnLayout {
|
||||||
spacing: 0
|
spacing: 0
|
||||||
|
|
||||||
Layout.topMargin: 10
|
Layout.topMargin: 10
|
||||||
Layout.fillWidth: true
|
Layout.fillWidth: true
|
||||||
|
|
||||||
|
@ -112,9 +112,7 @@ Rectangle {
|
||||||
}
|
}
|
||||||
|
|
||||||
ColumnLayout {
|
ColumnLayout {
|
||||||
Layout.topMargin: 10
|
|
||||||
Layout.fillWidth: true
|
Layout.fillWidth: true
|
||||||
|
|
||||||
spacing: 20
|
spacing: 20
|
||||||
|
|
||||||
MoneroComponents.LineEdit {
|
MoneroComponents.LineEdit {
|
||||||
|
@ -131,10 +129,24 @@ Rectangle {
|
||||||
text: "0"
|
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 {
|
MoneroComponents.LineEdit {
|
||||||
id: lookahead
|
id: lookahead
|
||||||
Layout.fillWidth: true
|
Layout.fillWidth: true
|
||||||
|
visible: showAdvancedCheckbox.checked
|
||||||
labelText: qsTr("Subaddress lookahead (optional)") + translationManager.emptyString
|
labelText: qsTr("Subaddress lookahead (optional)") + translationManager.emptyString
|
||||||
labelFontSize: 14
|
labelFontSize: 14
|
||||||
placeholderText: "<major>:<minor>"
|
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 {
|
TextArea {
|
||||||
id: errorMsg
|
id: errorMsg
|
||||||
text: qsTr("Error writing wallet from hardware device. Check application logs.") + translationManager.emptyString;
|
text: qsTr("Error writing wallet from hardware device. Check application logs.") + translationManager.emptyString;
|
||||||
|
@ -184,7 +179,7 @@ Rectangle {
|
||||||
WizardNav {
|
WizardNav {
|
||||||
progressSteps: 4
|
progressSteps: 4
|
||||||
progress: 1
|
progress: 1
|
||||||
btnNext.enabled: walletInput.verify();
|
btnNext.enabled: walletInput.verify() && wizardCreateDevice1.deviceName;
|
||||||
btnPrev.text: qsTr("Back to menu") + translationManager.emptyString
|
btnPrev.text: qsTr("Back to menu") + translationManager.emptyString
|
||||||
btnNext.text: qsTr("Create wallet") + translationManager.emptyString
|
btnNext.text: qsTr("Create wallet") + translationManager.emptyString
|
||||||
onPrevClicked: {
|
onPrevClicked: {
|
||||||
|
|
Loading…
Reference in a new issue