File tree Expand file tree Collapse file tree 1 file changed +13
-6
lines changed Expand file tree Collapse file tree 1 file changed +13
-6
lines changed Original file line number Diff line number Diff line change @@ -221,19 +221,26 @@ Page {
221221 clearRequest .visible = false
222222 title .text = qsTr (" Request a payment" )
223223 address .text = " "
224+ qrImage .code = " "
224225 continueButton .text = qsTr (" Create bitcoin address" )
225226 }
226227 }
227228 }
228229
229- Rectangle {
230- id: qrPlaceholder
230+ Pane {
231231 Layout .alignment : Qt .AlignTop
232232 Layout .minimumWidth : 150
233- Layout .maximumWidth : 150
234- color: Theme .color .neutral2
235- width: 150
236- height: 150
233+ Layout .minimumHeight : 150
234+ padding: 0
235+ background: Rectangle {
236+ color: Theme .color .neutral2
237+ visible: qrImage .code === " "
238+ }
239+ contentItem: QRImage {
240+ id: qrImage
241+ backgroundColor: " transparent"
242+ foregroundColor: Theme .color .neutral9
243+ }
237244 }
238245 }
239246 }
You can’t perform that action at this time.
0 commit comments