summaryrefslogtreecommitdiffstats
path: root/src/controls/Styles/Base/SpinBoxStyle.qml
diff options
context:
space:
mode:
authorJens Bache-Wiig <jens.bache-wiig@digia.com>2013-10-14 13:06:10 +0200
committerThe Qt Project <gerrit-noreply@qt-project.org>2013-10-15 18:18:38 +0200
commitd9af37c1456e3678094b18715b1dae382aa78ee0 (patch)
treeb4dd2f0db052f12e49a48518fb34d9b59821714b /src/controls/Styles/Base/SpinBoxStyle.qml
parent70103a369a492c02b8135d2f261ed0d7252ca5ad (diff)
Improved font scalability for Base style
This should make it useable on hight dpi tablets and desktops where font sizes are larger. Change-Id: I8c8e7688927a0b54e3f95c276c743aaa31e8a4d9 Reviewed-by: J-P Nurmi <jpnurmi@digia.com> Reviewed-by: Gabriel de Dietrich <gabriel.dedietrich@digia.com>
Diffstat (limited to 'src/controls/Styles/Base/SpinBoxStyle.qml')
-rw-r--r--src/controls/Styles/Base/SpinBoxStyle.qml2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/controls/Styles/Base/SpinBoxStyle.qml b/src/controls/Styles/Base/SpinBoxStyle.qml
index 23a5505f4..795cdf451 100644
--- a/src/controls/Styles/Base/SpinBoxStyle.qml
+++ b/src/controls/Styles/Base/SpinBoxStyle.qml
@@ -128,7 +128,7 @@ Style {
/*! The background of the SpinBox. */
property Component background: Item {
- implicitHeight: 25
+ implicitHeight: Math.max(25, Math.round(TextSingleton.implicitHeight * 1.2))
implicitWidth: styleData.contentWidth + 26
BorderImage {
id: image