aboutsummaryrefslogtreecommitdiffstats
path: root/src/imports/controls/material/SpinBox.qml
diff options
context:
space:
mode:
authorJ-P Nurmi <jpnurmi@theqtcompany.com>2016-01-14 13:25:07 +0100
committerJ-P Nurmi <jpnurmi@theqtcompany.com>2016-01-18 12:00:06 +0000
commitc982851a854c56fb05b2a3602e89508f0846b602 (patch)
treebd0f47e9e2ad72b2e6d6239c87e981b81d5738c7 /src/imports/controls/material/SpinBox.qml
parent07e0dec2b92eea069021b6efcb984dbacba9b48e (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/controls/material/SpinBox.qml')
-rw-r--r--src/imports/controls/material/SpinBox.qml2
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
}