Receive page mobile layout fix

This commit is contained in:
Jaquee 2017-08-08 11:07:44 +02:00
parent c1c6d9ee6d
commit d834fb419c

View file

@ -324,7 +324,7 @@ Rectangle {
RowLayout { RowLayout {
id: trackingRow id: trackingRow
visible: !isAndroid && !isIOS
Label { Label {
id: trackingLabel id: trackingLabel
textFormat: Text.RichText textFormat: Text.RichText
@ -385,33 +385,33 @@ Rectangle {
} }
} }
} }
ColumnLayout {
Menu { Menu {
id: qrMenu id: qrMenu
title: "QrCode" title: "QrCode"
MenuItem { MenuItem {
text: qsTr("Save As") + translationManager.emptyString; text: qsTr("Save As") + translationManager.emptyString;
onTriggered: qrFileDialog.open() onTriggered: qrFileDialog.open()
} }
} }
Image { Image {
id: qrCode id: qrCode
anchors.margins: 50 anchors.margins: 50 * scaleRatio
anchors.top: trackingRow.bottom Layout.fillWidth: true
Layout.fillWidth: true Layout.minimumHeight: mainLayout.qrCodeSize
Layout.minimumHeight: mainLayout.qrCodeSize smooth: false
smooth: false fillMode: Image.PreserveAspectFit
fillMode: Image.PreserveAspectFit source: "image://qrcode/" + makeQRCodeString()
source: "image://qrcode/" + makeQRCodeString() MouseArea {
MouseArea { anchors.fill: parent
anchors.fill: parent acceptedButtons: Qt.RightButton
acceptedButtons: Qt.RightButton onClicked: {
onClicked: { if (mouse.button == Qt.RightButton)
if (mouse.button == Qt.RightButton) qrMenu.popup()
qrMenu.popup() }
onPressAndHold: qrFileDialog.open()
} }
onPressAndHold: qrFileDialog.open()
} }
} }
} }