diff options
author | Jens Bache-Wiig <jens.bache-wiig@digia.com> | 2013-10-14 13:06:10 +0200 |
---|---|---|
committer | The Qt Project <gerrit-noreply@qt-project.org> | 2013-10-15 18:18:38 +0200 |
commit | d9af37c1456e3678094b18715b1dae382aa78ee0 (patch) | |
tree | b4dd2f0db052f12e49a48518fb34d9b59821714b /src/controls/Styles/Base/ProgressBarStyle.qml | |
parent | 70103a369a492c02b8135d2f261ed0d7252ca5ad (diff) | |
download | qtquickcontrols-d9af37c1456e3678094b18715b1dae382aa78ee0.tar.gz |
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/ProgressBarStyle.qml')
-rw-r--r-- | src/controls/Styles/Base/ProgressBarStyle.qml | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/controls/Styles/Base/ProgressBarStyle.qml b/src/controls/Styles/Base/ProgressBarStyle.qml index 6a8301e3..ae7f36b3 100644 --- a/src/controls/Styles/Base/ProgressBarStyle.qml +++ b/src/controls/Styles/Base/ProgressBarStyle.qml @@ -119,6 +119,7 @@ Style { border.color: Qt.rgba(1,1,1,0.3) Image { visible: control.indeterminate + height: parent.height NumberAnimation on x { from: -39 to: 0 @@ -138,7 +139,7 @@ Style { */ property Component background: Item { implicitWidth: 200 - implicitHeight: 24 + implicitHeight: Math.max(25, Math.round(TextSingleton.implicitHeight * 1.2)) BorderImage { anchors.fill: parent anchors.bottomMargin: -2 |