aboutsummaryrefslogtreecommitdiffstats
path: root/src/imports/controls/fusion
diff options
context:
space:
mode:
authorJ-P Nurmi <jpnurmi@qt.io>2018-04-18 15:35:32 +0200
committerJ-P Nurmi <jpnurmi@qt.io>2018-04-18 15:40:44 +0000
commit1a7be215415eacc9c1210b8e686d6ae517893806 (patch)
tree44fb0cf36acbaa1a4ea16371f715fcc6947ac9f3 /src/imports/controls/fusion
parentd3333971f66daf36996cfd4afa6767d308e43e21 (diff)
SpinBox: add up|down.implicitIndicatorWidth|Height
[ChangeLog][Controls][SpinBox] Added up.implicitIndicatorWidth, up.implicitIndicatorHeight, down.implicitIndicatorWidth, and down.implicitIndicatorHeight properties. Change-Id: I2cdc4e95f8cc3f0e47ce3b24346781f44809eecd Reviewed-by: Mitch Curtis <mitch.curtis@qt.io>
Diffstat (limited to 'src/imports/controls/fusion')
-rw-r--r--src/imports/controls/fusion/SpinBox.qml8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/imports/controls/fusion/SpinBox.qml b/src/imports/controls/fusion/SpinBox.qml
index 455510f9..0a6bf16b 100644
--- a/src/imports/controls/fusion/SpinBox.qml
+++ b/src/imports/controls/fusion/SpinBox.qml
@@ -46,12 +46,12 @@ T.SpinBox {
implicitWidth: Math.max(implicitBackgroundWidth,
contentItem.implicitWidth + 2 * padding +
- Math.max(up.indicator ? up.indicator.implicitWidth : 0,
- down.indicator ? down.indicator.implicitWidth : 0))
+ Math.max(up.implicitIndicatorWidth,
+ down.implicitIndicatorWidth))
implicitHeight: Math.max(implicitContentHeight + topPadding + bottomPadding,
implicitBackgroundHeight,
- (up.indicator ? up.indicator.implicitHeight : 0 +
- down.indicator ? down.indicator.implicitHeight : 0))
+ up.implicitIndicatorHeight +
+ down.implicitIndicatorHeight)
padding: 4
leftPadding: padding + (control.mirrored ? (up.indicator ? up.indicator.width : 0) : (down.indicator ? down.indicator.width : 0))