aboutsummaryrefslogtreecommitdiffstats
path: root/examples/quick/shared/Button.qml
diff options
context:
space:
mode:
authorShawn Rutledge <shawn.rutledge@digia.com>2013-07-23 11:19:33 +0200
committerThe Qt Project <gerrit-noreply@qt-project.org>2013-07-29 11:06:06 +0200
commit09ed33677124a81117a10f1f5a47d7fae1ef22a8 (patch)
treeb6ad054f5800fa407a9a25a20e1b9383a5d4ff14 /examples/quick/shared/Button.qml
parentd5b4e460bde0c152da5b872ac8ed6f675bf227a9 (diff)
Make buttons and tabs larger in QML examples and dialogs
Task-number: QTBUG-32578 Change-Id: Ic89058abc55e5e079f44862986b2132114456147 Reviewed-by: Liang Qi <liang.qi@digia.com>
Diffstat (limited to 'examples/quick/shared/Button.qml')
-rw-r--r--examples/quick/shared/Button.qml7
1 files changed, 4 insertions, 3 deletions
diff --git a/examples/quick/shared/Button.qml b/examples/quick/shared/Button.qml
index 551f7d6e04..468f945934 100644
--- a/examples/quick/shared/Button.qml
+++ b/examples/quick/shared/Button.qml
@@ -39,6 +39,7 @@
****************************************************************************/
import QtQuick 2.1
+import QtQuick.Window 2.1
Item {
id: container
@@ -48,8 +49,8 @@ Item {
signal clicked
property alias containsMouse: mouseArea.containsMouse
property alias pressed: mouseArea.pressed
- implicitHeight: buttonLabel.implicitHeight * 1.2
- implicitWidth: buttonLabel.implicitWidth * 1.2
+ implicitHeight: Math.max(Screen.logicalPixelDensity * 7, buttonLabel.implicitHeight * 1.2)
+ implicitWidth: Math.max(Screen.logicalPixelDensity * 11, buttonLabel.implicitWidth * 1.3)
height: implicitHeight
width: implicitWidth
@@ -64,7 +65,7 @@ Item {
GradientStop { position: 1.0; color: Qt.darker(palette.button, 1.3) }
}
antialiasing: true
- radius: height / 4
+ radius: height / 6
border.color: Qt.darker(palette.button, 1.5)
border.width: 1
}