From d834fb419c2f31cfa678fcb70f05303a94d0195a Mon Sep 17 00:00:00 2001 From: Jaquee Date: Tue, 8 Aug 2017 11:07:44 +0200 Subject: [PATCH] Receive page mobile layout fix --- pages/Receive.qml | 54 +++++++++++++++++++++++------------------------ 1 file changed, 27 insertions(+), 27 deletions(-) diff --git a/pages/Receive.qml b/pages/Receive.qml index 55038efa..bd3d0bd3 100644 --- a/pages/Receive.qml +++ b/pages/Receive.qml @@ -324,7 +324,7 @@ Rectangle { RowLayout { id: trackingRow - + visible: !isAndroid && !isIOS Label { id: trackingLabel textFormat: Text.RichText @@ -385,33 +385,33 @@ Rectangle { } } } - - Menu { - id: qrMenu - title: "QrCode" - MenuItem { - text: qsTr("Save As") + translationManager.emptyString; - onTriggered: qrFileDialog.open() - } - } - - Image { - id: qrCode - anchors.margins: 50 - anchors.top: trackingRow.bottom - Layout.fillWidth: true - Layout.minimumHeight: mainLayout.qrCodeSize - smooth: false - fillMode: Image.PreserveAspectFit - source: "image://qrcode/" + makeQRCodeString() - MouseArea { - anchors.fill: parent - acceptedButtons: Qt.RightButton - onClicked: { - if (mouse.button == Qt.RightButton) - qrMenu.popup() + ColumnLayout { + Menu { + id: qrMenu + title: "QrCode" + MenuItem { + text: qsTr("Save As") + translationManager.emptyString; + onTriggered: qrFileDialog.open() + } + } + + Image { + id: qrCode + anchors.margins: 50 * scaleRatio + Layout.fillWidth: true + Layout.minimumHeight: mainLayout.qrCodeSize + smooth: false + fillMode: Image.PreserveAspectFit + source: "image://qrcode/" + makeQRCodeString() + MouseArea { + anchors.fill: parent + acceptedButtons: Qt.RightButton + onClicked: { + if (mouse.button == Qt.RightButton) + qrMenu.popup() + } + onPressAndHold: qrFileDialog.open() } - onPressAndHold: qrFileDialog.open() } } }