diff options
author | Gatis Paeglis <gatis.paeglis@digia.com> | 2014-04-09 16:03:08 +0200 |
---|---|---|
committer | Gatis Paeglis <gatis.paeglis@digia.com> | 2014-04-09 17:37:00 +0300 |
commit | 281bb29574c3188a670d125a7e259fc6efcc64e2 (patch) | |
tree | 375d3a4cadcce12259e4256de42c715062048873 /basicsuite/launchersettings/main.qml | |
parent | bb8049fd3dceea482304076b30ef8cbe574e308f (diff) |
[launchersettings] Fix UI scaling
Task-number: QTEE-473
Change-Id: I8fb07fd007c394beec1603cdf171e0af15af0819
Reviewed-by: Laszlo Agocs <laszlo.agocs@digia.com>
Diffstat (limited to 'basicsuite/launchersettings/main.qml')
-rw-r--r-- | basicsuite/launchersettings/main.qml | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/basicsuite/launchersettings/main.qml b/basicsuite/launchersettings/main.qml index 718bf69..dbd1a31 100644 --- a/basicsuite/launchersettings/main.qml +++ b/basicsuite/launchersettings/main.qml @@ -44,6 +44,7 @@ import QtQuick.Controls 1.0 import QtQuick.Layouts 1.0 import QtQuick.Controls.Styles 1.0 import QtQuick.Controls.Private 1.0 +import QtQuick.Window 2.1 Rectangle { id: root @@ -73,7 +74,7 @@ Rectangle { text: control.text anchors.centerIn: parent color: "white" - font.pixelSize: 23 + font.pixelSize: 22 renderType: Text.NativeRendering } } @@ -140,7 +141,8 @@ Rectangle { ColumnLayout { id: mainLayout - width: 800 + // can not use size of "root" here, it will shrink UI when virtual keyboard is open + width: Math.min(Screen.width, Screen.height) height: implicitHeight anchors.left: parent.left anchors.right: parent.right @@ -247,6 +249,7 @@ Rectangle { id: hostnameButton style: buttonStyle text: "Change hostname" + implicitWidth: 260 onClicked: networkControllerLoader.item.setHostname(hostname.text); enabled: networkControllerLoader.item != undefined } |