aboutsummaryrefslogtreecommitdiffstats
path: root/src/imports/dialogs/qml/Button.qml
diff options
context:
space:
mode:
authorShawn Rutledge <shawn.rutledge@digia.com>2013-10-25 15:24:50 +0200
committerThe Qt Project <gerrit-noreply@qt-project.org>2013-10-26 01:52:10 +0200
commit6041de9ad7ec9407507ea0e77f3588039db28634 (patch)
tree6b2a6eeadea28888bab189b158738403faa55f07 /src/imports/dialogs/qml/Button.qml
parentcca9522e7ca0c040ae354b20f09983005ef955bd (diff)
QtQuick.Dialogs: resolution-independent controls use actual resolution
logicalPixelDensity ended up hard-coded on Android, which made the buttons and the FileDialog too small again. Change-Id: Ic1805246c4466d7167d422ba48ae5ec37978d332 Reviewed-by: Jens Bache-Wiig <jens.bache-wiig@digia.com>
Diffstat (limited to 'src/imports/dialogs/qml/Button.qml')
-rw-r--r--src/imports/dialogs/qml/Button.qml4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/imports/dialogs/qml/Button.qml b/src/imports/dialogs/qml/Button.qml
index 19ed073484..f48264d5ff 100644
--- a/src/imports/dialogs/qml/Button.qml
+++ b/src/imports/dialogs/qml/Button.qml
@@ -49,8 +49,8 @@ Item {
signal clicked
property alias containsMouse: mouseArea.containsMouse
property alias pressed: mouseArea.pressed
- implicitHeight: Math.max(Screen.logicalPixelDensity * 7, buttonLabel.implicitHeight * 1.2)
- implicitWidth: visible ? Math.max(Screen.logicalPixelDensity * 11, buttonLabel.implicitWidth * 1.3) : 0
+ implicitHeight: Math.max(Screen.pixelDensity * 7, buttonLabel.implicitHeight * 1.2)
+ implicitWidth: visible ? Math.max(Screen.pixelDensity * 11, buttonLabel.implicitWidth * 1.3) : 0
height: implicitHeight
width: implicitWidth