summaryrefslogtreecommitdiffstats
path: root/qml/mw-ui.qml
diff options
context:
space:
mode:
authorPapoteur <papoteur@mageia.org>2019-01-21 09:59:05 +0100
committerPapoteur <papoteur@mageia.org>2019-01-21 09:59:05 +0100
commitf242050139d84a0d8acc0870072d5f0ceb2a5128 (patch)
treec82cc0844d14251531c0d5a06bddf059f043ab8f /qml/mw-ui.qml
parentbe6044545f1693e9093efe69686a264e20e65df0 (diff)
downloadmageiawelcome-f242050139d84a0d8acc0870072d5f0ceb2a5128.tar
mageiawelcome-f242050139d84a0d8acc0870072d5f0ceb2a5128.tar.gz
mageiawelcome-f242050139d84a0d8acc0870072d5f0ceb2a5128.tar.bz2
mageiawelcome-f242050139d84a0d8acc0870072d5f0ceb2a5128.tar.xz
mageiawelcome-f242050139d84a0d8acc0870072d5f0ceb2a5128.zip
More adaptative to HiDPI
- window size follows scaling factor - bottom band follows checkbox size
Diffstat (limited to 'qml/mw-ui.qml')
-rw-r--r--qml/mw-ui.qml5
1 files changed, 3 insertions, 2 deletions
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)