Skip to content

Commit 16a22cd

Browse files
committed
qml: Use QRImage in RequestPayment
1 parent 6531063 commit 16a22cd

File tree

1 file changed

+13
-6
lines changed

1 file changed

+13
-6
lines changed

src/qml/pages/wallet/RequestPayment.qml

Lines changed: 13 additions & 6 deletions
Original file line numberDiff line numberDiff 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
}

0 commit comments

Comments
 (0)