From f242050139d84a0d8acc0870072d5f0ceb2a5128 Mon Sep 17 00:00:00 2001 From: Papoteur Date: Mon, 21 Jan 2019 09:59:05 +0100 Subject: More adaptative to HiDPI - window size follows scaling factor - bottom band follows checkbox size --- qml/mw-ui.qml | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'qml/mw-ui.qml') diff --git a/qml/mw-ui.qml b/qml/mw-ui.qml index 7383b41..6ef46f0 100644 --- a/qml/mw-ui.qml +++ b/qml/mw-ui.qml @@ -10,7 +10,7 @@ import Qt.labs.settings 1.0 Rectangle { id: box - width: 1000; height: 700 + width: 1000 * Screen.devicePixelRatio; height: 700 * Screen.devicePixelRatio property alias view: view //: For Right to Left language, set this string to RTL @@ -879,7 +879,7 @@ Rectangle { anchors.rightMargin: 0 anchors.leftMargin: 0 anchors.topMargin: 0 - anchors { fill: parent; bottomMargin: 30 } + anchors { fill: parent; bottomMargin: startCB.implicitHeight +10 } model: itemModel preferredHighlightBegin: 0; preferredHighlightEnd: 0 highlightRangeMode: ListView.StrictlyEnforceRange @@ -935,6 +935,7 @@ Rectangle { anchors.bottom: box.bottom anchors.margins: 6 CheckBox { + id:startCB text: qsTr("Show this window at startup") checked: startupcheck onClicked: norun.setRunAtLaunch(checked) -- cgit v1.2.1