aboutsummaryrefslogtreecommitdiffstats
path: root/src/imports
diff options
context:
space:
mode:
authorJ-P Nurmi <jpnurmi@theqtcompany.com>2016-01-25 15:59:25 +0100
committerJ-P Nurmi <jpnurmi@theqtcompany.com>2016-01-25 16:34:16 +0000
commit8e10437466952e4af427173e95a3c7947d317866 (patch)
tree8de14b8e81fdcb01c7955fd2826515c3417a4a86 /src/imports
parentf7fa4aad8f4b75f81ab09aa1bf029d9d36d6a70a (diff)
Make default style SpinBox behave better when resized
Change-Id: If2ddb2c65fec2a0159d740c788b7f21c1c7f0637 Reviewed-by: Mitch Curtis <mitch.curtis@theqtcompany.com>
Diffstat (limited to 'src/imports')
-rw-r--r--src/imports/controls/SpinBox.qml4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/imports/controls/SpinBox.qml b/src/imports/controls/SpinBox.qml
index c84a2e3e..947ec74a 100644
--- a/src/imports/controls/SpinBox.qml
+++ b/src/imports/controls/SpinBox.qml
@@ -82,6 +82,7 @@ T.SpinBox {
//! [up.indicator]
up.indicator: Rectangle {
x: control.mirrored ? 0 : parent.width - width
+ height: parent.height
implicitWidth: 40
implicitHeight: 40
color: up.pressed ? "#e4e4e4" : "#f6f6f6"
@@ -98,7 +99,7 @@ T.SpinBox {
x: (parent.width - width) / 2
y: (parent.height - height) / 2
width: 2
- height: parent.height / 3
+ height: parent.width / 3
color: control.enabled ? "#353637" : "#bdbebf"
}
}
@@ -107,6 +108,7 @@ T.SpinBox {
//! [down.indicator]
down.indicator: Rectangle {
x: control.mirrored ? parent.width - width : 0
+ height: parent.height
implicitWidth: 40
implicitHeight: 40
color: down.pressed ? "#e4e4e4" : "#f6f6f6"