From 9b33422f5167f8f7c31346f129adcc944266f372 Mon Sep 17 00:00:00 2001 From: Liang Qi Date: Fri, 6 May 2016 12:09:28 +0200 Subject: Controls: update all paddings to relative value with padding Change-Id: I7bf3a7fb9ca97e5c7ddf34f8f921d5d4be733861 Reviewed-by: J-P Nurmi --- src/imports/controls/SpinBox.qml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/imports/controls/SpinBox.qml') 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] -- cgit v1.2.3