2929import QtQuick 2.9
3030import QtQuick.Layouts 1.2
3131import QtQuick.Controls 2.0
32+ import FontAwesome 1.0
3233
3334import "../js/Wizard.js" as Wizard
3435import "../js/Utils.js" as Utils
@@ -64,7 +65,6 @@ Rectangle {
6465 // the key fields are only visible in 'keys' mode
6566 seedRadioButton .checked = false ;
6667 keysRadioButton .checked = true ;
67- qrRadioButton .checked = false ;
6868 wizardController .walletRestoreMode = ' keys' ;
6969
7070 // extra_parameters is null when a bare address was scanned
@@ -132,18 +132,18 @@ Rectangle {
132132
133133 RowLayout {
134134 Layout .topMargin : - 10
135- spacing: 200
135+ spacing: 0
136136 Layout .fillWidth : true
137137
138138 MoneroComponents .RadioButton {
139139 id: seedRadioButton
140140 text: qsTr (" Restore from seed" ) + translationManager .emptyString
141141 fontSize: 16
142142 checked: true
143+ Layout .fillWidth : true
143144 onClicked: {
144145 checked = true ;
145146 keysRadioButton .checked = false ;
146- qrRadioButton .checked = false ;
147147 wizardController .walletRestoreMode = ' seed' ;
148148 }
149149 }
@@ -153,28 +153,28 @@ Rectangle {
153153 text: qsTr (" Restore from keys" ) + translationManager .emptyString
154154 fontSize: 16
155155 checked: false
156+ Layout .fillWidth : true
156157 onClicked: {
157158 checked = true ;
158159 seedRadioButton .checked = false ;
159- qrRadioButton .checked = false ;
160160 wizardController .walletRestoreMode = ' keys' ;
161161 }
162162 }
163163
164- MoneroComponents .RadioButton {
165- id: qrRadioButton
166- text: qsTr (" Restore from QR Code" ) + translationManager .emptyString
167- fontSize: 16
164+ MoneroComponents .InlineButton {
165+ id: scanWalletQrButton
168166 visible: appWindow .qrScannerEnabled
169- checked: false
167+ fontFamily: FontAwesome .fontFamilySolid
168+ fontStyleName: " Solid"
169+ text: FontAwesome .qrcode
170+ tooltip: qsTr (" Scan wallet QR code" ) + translationManager .emptyString
170171 onClicked: {
171- checked = true ;
172- seedRadioButton .checked = false ;
173- keysRadioButton .checked = false ;
174- wizardController .walletRestoreMode = ' qr' ;
175- cameraUi .state = " Capture" ;
172+ cameraUi .qrcode_decoded .disconnect (updateFromQrCode);
176173 cameraUi .qrcode_decoded .connect (updateFromQrCode);
174+ cameraUi .state = " Capture" ;
177175 }
176+ Accessible .role : Accessible .Button
177+ Accessible .name : tooltip
178178 }
179179 }
180180
@@ -352,7 +352,6 @@ Rectangle {
352352 wizardWalletInput .reset ();
353353 seedRadioButton .checked = true ;
354354 keysRadioButton .checked = false ;
355- qrRadioButton .checked = false ;
356355 seedInput .text = " " ;
357356 seedOffsetCheckbox .checked = false ;
358357 seedOffset .text = " " ;
0 commit comments