diff options
author | J-P Nurmi <jpnurmi@theqtcompany.com> | 2016-01-14 13:25:07 +0100 |
---|---|---|
committer | J-P Nurmi <jpnurmi@theqtcompany.com> | 2016-01-18 12:00:06 +0000 |
commit | c982851a854c56fb05b2a3602e89508f0846b602 (patch) | |
tree | bd0f47e9e2ad72b2e6d6239c87e981b81d5738c7 /src/imports | |
parent | 07e0dec2b92eea069021b6efcb984dbacba9b48e (diff) |
Material SpinBox: stretch the underline
When there's a relatively wide SpinBox with value "0", the underline
was not stretched to cover the empty area, just the value. This change
makes the underline stretch to make the buttons look more connected to
the value.
Change-Id: Idf2c61a7a1a5bbbbce946bd53f04524e21507819
Reviewed-by: Mitch Curtis <mitch.curtis@theqtcompany.com>
Diffstat (limited to 'src/imports')
-rw-r--r-- | src/imports/controls/material/SpinBox.qml | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/imports/controls/material/SpinBox.qml b/src/imports/controls/material/SpinBox.qml index be51d06c..5d2044e6 100644 --- a/src/imports/controls/material/SpinBox.qml +++ b/src/imports/controls/material/SpinBox.qml @@ -135,7 +135,7 @@ T.SpinBox { Rectangle { x: parent.width / 2 - width / 2 y: parent.y + parent.height - height - width: Math.max(26, control.contentItem.implicitWidth) + width: control.availableWidth height: control.activeFocus ? 2 : 1 color: control.activeFocus ? control.Material.accentColor : control.Material.hintTextColor } |