aboutsummaryrefslogtreecommitdiffstats
path: root/examples/quick/shared/Button.qml
diff options
context:
space:
mode:
authorShawn Rutledge <shawn.rutledge@digia.com>2013-10-25 16:53:55 +0200
committerThe Qt Project <gerrit-noreply@qt-project.org>2013-10-30 15:29:59 +0100
commit639553f024f7b03706553ebb34825591be75eed2 (patch)
tree452c75029eb0e4235acd7309190283e31d6ad9f4 /examples/quick/shared/Button.qml
parent7af741357be05429e21965b7bbb487ff09aea94b (diff)
QtQuick examples make use of the new pixelDensity property
Change-Id: I273fc08405724158fbf7c7d410bfa38fef4600b1 Reviewed-by: Jens Bache-Wiig <jens.bache-wiig@digia.com>
Diffstat (limited to 'examples/quick/shared/Button.qml')
-rw-r--r--examples/quick/shared/Button.qml4
1 files changed, 2 insertions, 2 deletions
diff --git a/examples/quick/shared/Button.qml b/examples/quick/shared/Button.qml
index 468f945934..6f080e1b21 100644
--- a/examples/quick/shared/Button.qml
+++ b/examples/quick/shared/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: Math.max(Screen.logicalPixelDensity * 11, buttonLabel.implicitWidth * 1.3)
+ implicitHeight: Math.max(Screen.pixelDensity * 7, buttonLabel.implicitHeight * 1.2)
+ implicitWidth: Math.max(Screen.pixelDensity * 11, buttonLabel.implicitWidth * 1.3)
height: implicitHeight
width: implicitWidth