diff options
author | Liang Qi <liang.qi@qt.io> | 2016-05-06 12:09:28 +0200 |
---|---|---|
committer | Liang Qi <liang.qi@qt.io> | 2016-05-19 11:21:27 +0000 |
commit | 9b33422f5167f8f7c31346f129adcc944266f372 (patch) | |
tree | 9fd31daa082e3cb5e578001e1a2a797484d9cb2c /src/imports/controls/SpinBox.qml | |
parent | 9a1c9459a61cdd3ddb1bd0608a2caa9bae632e58 (diff) |
Controls: update all paddings to relative value with padding
Change-Id: I7bf3a7fb9ca97e5c7ddf34f8f921d5d4be733861
Reviewed-by: J-P Nurmi <jpnurmi@qt.io>
Diffstat (limited to 'src/imports/controls/SpinBox.qml')
-rw-r--r-- | src/imports/controls/SpinBox.qml | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/imports/controls/SpinBox.qml b/src/imports/controls/SpinBox.qml index 9ea9d5ef..81bbb1b2 100644 --- a/src/imports/controls/SpinBox.qml +++ b/src/imports/controls/SpinBox.qml @@ -51,8 +51,8 @@ T.SpinBox { baselineOffset: contentItem.y + contentItem.baselineOffset padding: 6 - leftPadding: 6 + (control.mirrored ? (up.indicator ? up.indicator.width : 0) : (down.indicator ? down.indicator.width : 0)) - rightPadding: 6 + (control.mirrored ? (down.indicator ? down.indicator.width : 0) : (up.indicator ? up.indicator.width : 0)) + leftPadding: padding + (control.mirrored ? (up.indicator ? up.indicator.width : 0) : (down.indicator ? down.indicator.width : 0)) + rightPadding: padding + (control.mirrored ? (down.indicator ? down.indicator.width : 0) : (up.indicator ? up.indicator.width : 0)) opacity: control.enabled ? 1 : 0.3 //! [validator] |