|
|
@ -34,73 +34,80 @@ Dialog { |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
ColumnLayout { |
|
|
|
id: rootLayout |
|
|
|
width: parent.width |
|
|
|
spacing: constants.paddingMedium |
|
|
|
Flickable { |
|
|
|
anchors.fill: parent |
|
|
|
contentHeight: rootLayout.height |
|
|
|
clip:true |
|
|
|
interactive: height < contentHeight |
|
|
|
|
|
|
|
Rectangle { |
|
|
|
height: 1 |
|
|
|
Layout.fillWidth: true |
|
|
|
color: Material.accentColor |
|
|
|
} |
|
|
|
|
|
|
|
Image { |
|
|
|
id: qr |
|
|
|
Layout.alignment: Qt.AlignHCenter |
|
|
|
Layout.topMargin: constants.paddingSmall |
|
|
|
Layout.bottomMargin: constants.paddingSmall |
|
|
|
ColumnLayout { |
|
|
|
id: rootLayout |
|
|
|
width: parent.width |
|
|
|
spacing: constants.paddingMedium |
|
|
|
|
|
|
|
Rectangle { |
|
|
|
property int size: 57 // should be qr pixel multiple |
|
|
|
color: 'white' |
|
|
|
x: (parent.width - size) / 2 |
|
|
|
y: (parent.height - size) / 2 |
|
|
|
width: size |
|
|
|
height: size |
|
|
|
|
|
|
|
Image { |
|
|
|
source: '../../../icons/electrum.png' |
|
|
|
x: 1 |
|
|
|
y: 1 |
|
|
|
width: parent.width - 2 |
|
|
|
height: parent.height - 2 |
|
|
|
scale: 0.9 |
|
|
|
} |
|
|
|
height: 1 |
|
|
|
Layout.fillWidth: true |
|
|
|
color: Material.accentColor |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
Rectangle { |
|
|
|
height: 1 |
|
|
|
Layout.fillWidth: true |
|
|
|
color: Material.accentColor |
|
|
|
} |
|
|
|
Image { |
|
|
|
id: qr |
|
|
|
Layout.alignment: Qt.AlignHCenter |
|
|
|
Layout.topMargin: constants.paddingSmall |
|
|
|
Layout.bottomMargin: constants.paddingSmall |
|
|
|
|
|
|
|
TextHighlightPane { |
|
|
|
Layout.fillWidth: true |
|
|
|
Label { |
|
|
|
width: parent.width |
|
|
|
text: dialog.text |
|
|
|
wrapMode: Text.Wrap |
|
|
|
font.pixelSize: constants.fontSizeLarge |
|
|
|
font.family: FixedFont |
|
|
|
Rectangle { |
|
|
|
property int size: 57 // should be qr pixel multiple |
|
|
|
color: 'white' |
|
|
|
x: (parent.width - size) / 2 |
|
|
|
y: (parent.height - size) / 2 |
|
|
|
width: size |
|
|
|
height: size |
|
|
|
|
|
|
|
Image { |
|
|
|
source: '../../../icons/electrum.png' |
|
|
|
x: 1 |
|
|
|
y: 1 |
|
|
|
width: parent.width - 2 |
|
|
|
height: parent.height - 2 |
|
|
|
scale: 0.9 |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
RowLayout { |
|
|
|
Layout.fillWidth: true |
|
|
|
Layout.alignment: Qt.AlignHCenter |
|
|
|
Button { |
|
|
|
text: qsTr('Copy') |
|
|
|
icon.source: '../../../icons/copy_bw.png' |
|
|
|
onClicked: AppController.textToClipboard(dialog.text) |
|
|
|
Rectangle { |
|
|
|
height: 1 |
|
|
|
Layout.fillWidth: true |
|
|
|
color: Material.accentColor |
|
|
|
} |
|
|
|
Button { |
|
|
|
//enabled: false |
|
|
|
text: qsTr('Share') |
|
|
|
icon.source: '../../../icons/share.png' |
|
|
|
onClicked: { |
|
|
|
AppController.doShare(dialog.text, dialog.title) |
|
|
|
|
|
|
|
TextHighlightPane { |
|
|
|
Layout.fillWidth: true |
|
|
|
Label { |
|
|
|
width: parent.width |
|
|
|
text: dialog.text |
|
|
|
wrapMode: Text.Wrap |
|
|
|
font.pixelSize: constants.fontSizeLarge |
|
|
|
font.family: FixedFont |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
RowLayout { |
|
|
|
Layout.fillWidth: true |
|
|
|
Layout.alignment: Qt.AlignHCenter |
|
|
|
Button { |
|
|
|
text: qsTr('Copy') |
|
|
|
icon.source: '../../../icons/copy_bw.png' |
|
|
|
onClicked: AppController.textToClipboard(dialog.text) |
|
|
|
} |
|
|
|
Button { |
|
|
|
//enabled: false |
|
|
|
text: qsTr('Share') |
|
|
|
icon.source: '../../../icons/share.png' |
|
|
|
onClicked: { |
|
|
|
AppController.doShare(dialog.text, dialog.title) |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|