File tree Expand file tree Collapse file tree 4 files changed +20
-0
lines changed Expand file tree Collapse file tree 4 files changed +20
-0
lines changed Original file line number Diff line number Diff line change @@ -438,6 +438,7 @@ QML_RES_QML = \
438
438
qml/controls/OptionButton.qml \
439
439
qml/controls/OptionSwitch.qml \
440
440
qml/controls/OutlineButton.qml \
441
+ qml/controls/QRImage.qml \
441
442
qml/controls/PageIndicator.qml \
442
443
qml/controls/PageStack.qml \
443
444
qml/controls/ProgressIndicator.qml \
Original file line number Diff line number Diff line change 47
47
<file>controls/PageIndicator.qml</file>
48
48
<file>controls/PageStack.qml</file>
49
49
<file>controls/ProgressIndicator.qml</file>
50
+ <file>controls/QRImage.qml</file>
50
51
<file>controls/qmldir</file>
51
52
<file>controls/SendOptionsPopup.qml</file>
52
53
<file>controls/Setting.qml</file>
Original file line number Diff line number Diff line change
1
+ // Copyright (c) 2025 The Bitcoin Core developers
2
+ // Distributed under the MIT software license, see the accompanying
3
+ // file COPYING or http://www.opensource.org/licenses/mit-license.php.
4
+
5
+ import QtQuick 2.15
6
+
7
+ Image {
8
+ id: root
9
+
10
+ property string code: " "
11
+ property color backgroundColor: Qt .black
12
+ property color foregroundColor: Qt .white
13
+
14
+ fillMode: Image .PreserveAspectFit
15
+ smooth: false
16
+ source: ` image://qr/${ encodeURIComponent (root .code )} ?&fg=${ encodeURIComponent (root .foregroundColor )} &bg=${ encodeURIComponent (root .backgroundColor )} `
17
+ }
Original file line number Diff line number Diff line change @@ -199,6 +199,7 @@ Page {
199
199
clearRequest .visible = true
200
200
title .text = qsTr (" Payment request #" + requestCounter)
201
201
address .text = " bc1q f5xe y2tf 89k9 zy6k gnru wszy 5fsa truy 9te1 bu"
202
+ qrImage .code = " bc1qf5xey2tf89k9zy6kgnruwszy5fsatruy9te1bu"
202
203
continueButton .text = qsTr (" Copy payment request" )
203
204
}
204
205
}
You can’t perform that action at this time.
0 commit comments