diff options
| author | luigi1111 <luigi1111w@gmail.com> | 2019-08-06 15:05:36 -0500 |
|---|---|---|
| committer | luigi1111 <luigi1111w@gmail.com> | 2019-08-06 15:05:36 -0500 |
| commit | dc49d7af38da8cd8c3847c552713cff00b66341a (patch) | |
| tree | 12b2b009174072c1806d3c64e7ffb3919dcc839c /wizard | |
| parent | e01c2e903aee520232c9d6d9c3e4407adfedae4c (diff) | |
| parent | e546ce83b496a21d16854762e3b3368a667bde01 (diff) | |
| download | monzero-gui-dc49d7af38da8cd8c3847c552713cff00b66341a.tar.gz monzero-gui-dc49d7af38da8cd8c3847c552713cff00b66341a.tar.xz monzero-gui-dc49d7af38da8cd8c3847c552713cff00b66341a.zip | |
Merge pull request #2331
e546ce8 WizardRestoreWallet1: use RadioButtons instead of buttons (selsta)
Diffstat (limited to 'wizard')
| -rw-r--r-- | wizard/WizardRestoreWallet1.qml | 45 |
1 files changed, 28 insertions, 17 deletions
diff --git a/wizard/WizardRestoreWallet1.qml b/wizard/WizardRestoreWallet1.qml index 8e71b900..1a0dd201 100644 --- a/wizard/WizardRestoreWallet1.qml +++ b/wizard/WizardRestoreWallet1.qml @@ -113,39 +113,50 @@ Rectangle { id: wizardWalletInput } - GridLayout{ - columns: 3 + RowLayout { + Layout.topMargin: 10 + spacing: 30 + Layout.fillWidth: true - MoneroComponents.StandardButton { + MoneroComponents.RadioButton { + id: seedRadioButton text: qsTr("Restore from seed") + translationManager.emptyString - small: true - enabled: wizardController.walletRestoreMode !== 'seed' - + fontSize: 16 + checked: true onClicked: { + checked = true; + keysRadioButton.checked = false; + qrRadioButton.checked = false; wizardController.walletRestoreMode = 'seed'; } } - MoneroComponents.StandardButton { + MoneroComponents.RadioButton { + id: keysRadioButton text: qsTr("Restore from keys") + translationManager.emptyString - small: true - enabled: wizardController.walletRestoreMode !== 'keys' - + fontSize: 16 + checked: false onClicked: { + checked = true; + seedRadioButton.checked = false; + qrRadioButton.checked = false; wizardController.walletRestoreMode = 'keys'; } } - MoneroComponents.StandardButton { - text: qsTr("From QR Code") + translationManager.emptyString - small: true + MoneroComponents.RadioButton { + id: qrRadioButton + text: qsTr("Restore from QR Code") + translationManager.emptyString + fontSize: 16 visible: appWindow.qrScannerEnabled - enabled: wizardController.walletRestoreMode !== 'qr' - + checked: false onClicked: { + checked = true; + seedRadioButton.checked = false; + keysRadioButton.checked = false; wizardController.walletRestoreMode = 'qr'; - cameraUi.state = "Capture" - cameraUi.qrcode_decoded.connect(Wizard.updateFromQrCode) + cameraUi.state = "Capture"; + cameraUi.qrcode_decoded.connect(Wizard.updateFromQrCode); } } } |
