1
0
This commit is contained in:
Sander van Grieken
2022-10-19 14:15:24 +02:00
parent 717b6dd5fb
commit c7cdd42665
7 changed files with 497 additions and 525 deletions

View File

@@ -26,20 +26,6 @@ ElDialog {
color: "#aa000000"
}
// header: RowLayout {
// width: dialog.width
// Label {
// Layout.fillWidth: true
// text: dialog.title
// visible: dialog.title
// elide: Label.ElideRight
// padding: constants.paddingXLarge
// bottomPadding: 0
// font.bold: true
// font.pixelSize: constants.fontSizeMedium
// }
// }
Flickable {
anchors.fill: parent
contentHeight: rootLayout.height
@@ -51,12 +37,6 @@ ElDialog {
width: parent.width
spacing: constants.paddingMedium
Rectangle {
height: 1
Layout.fillWidth: true
color: Material.accentColor
}
QRImage {
id: qr
render: dialog.enter ? false : true
@@ -66,12 +46,6 @@ ElDialog {
Layout.bottomMargin: constants.paddingSmall
}
Rectangle {
height: 1
Layout.fillWidth: true
color: Material.accentColor
}
TextHighlightPane {
Layout.fillWidth: true
Label {
@@ -92,15 +66,23 @@ ElDialog {
Layout.fillWidth: true
}
Rectangle {
height: 1
Layout.preferredWidth: qr.width
Layout.alignment: Qt.AlignHCenter
color: Material.accentColor
}
RowLayout {
Layout.fillWidth: true
Layout.alignment: Qt.AlignHCenter
Button {
FlatButton {
text: qsTr('Copy')
icon.source: '../../icons/copy_bw.png'
onClicked: AppController.textToClipboard(dialog.text)
}
Button {
FlatButton {
text: qsTr('Share')
icon.source: '../../icons/share.png'
onClicked: {