diff options
author | fieldOfView <aldo@fieldofview.com> | 2017-09-25 23:07:12 +0300 |
---|---|---|
committer | fieldOfView <aldo@fieldofview.com> | 2017-09-25 23:07:12 +0300 |
commit | c5fd0e6c8011db72b0c86fc08dcc564d53ba1f3a (patch) | |
tree | 0549d05e82465988fede77c7c279abf3c7754620 /plugins/3MFReader/WorkspaceDialog.qml | |
parent | 5e0052dcb6e7f7d5d0c66bf5ea51151b425ed8f0 (diff) |
Use screenScaleFactor to consistently adapt sizes to display pixel ratio
Diffstat (limited to 'plugins/3MFReader/WorkspaceDialog.qml')
-rw-r--r-- | plugins/3MFReader/WorkspaceDialog.qml | 16 |
1 files changed, 9 insertions, 7 deletions
diff --git a/plugins/3MFReader/WorkspaceDialog.qml b/plugins/3MFReader/WorkspaceDialog.qml index 05941530ca..84a5933185 100644 --- a/plugins/3MFReader/WorkspaceDialog.qml +++ b/plugins/3MFReader/WorkspaceDialog.qml @@ -12,11 +12,13 @@ UM.Dialog { title: catalog.i18nc("@title:window", "Open Project") - width: 500 - height: 400 + minimumWidth: 500 * screenScaleFactor + minumumHeight: 400 * screenScaleFactor + width: minimumWidth + height: minumumHeight - property int comboboxHeight: 15 - property int spacerHeight: 10 + property int comboboxHeight: 15 * screenScaleFactor + property int spacerHeight: 10 * screenScaleFactor onClosing: manager.notifyClosed() onVisibleChanged: @@ -31,7 +33,7 @@ UM.Dialog Item { anchors.fill: parent - anchors.margins: 20 + anchors.margins: 20 * screenScaleFactor UM.I18nCatalog { @@ -59,7 +61,7 @@ UM.Dialog Column { anchors.fill: parent - spacing: 2 + spacing: 2 * screenScaleFactor Label { id: titleLabel @@ -373,7 +375,7 @@ UM.Dialog enabled: true anchors.bottom: parent.bottom anchors.right: ok_button.left - anchors.rightMargin:2 + anchors.rightMargin: 2 * screenScaleFactor } Button { |