diff options
author | Jens Bache-Wiig <jens.bache-wiig@digia.com> | 2013-05-23 17:57:37 +0200 |
---|---|---|
committer | The Qt Project <gerrit-noreply@qt-project.org> | 2013-05-24 18:04:44 +0200 |
commit | a0857d28e01e3a5769ac8f106d088fde648161e8 (patch) | |
tree | 43a618a92f4813f3d163db02253cb89e0b56f901 /src/controls/SpinBox.qml | |
parent | 7adbdc017982aec8645e152c7891ea51f84ff8ee (diff) | |
download | qtquickcontrols-a0857d28e01e3a5769ac8f106d088fde648161e8.tar.gz |
Enable padding as a grouped property
We want padding to be a grouped property as the
existing Margins property looks rather odd and
insconsistent.
Change-Id: I9e614f9161aaf01af200b19a1fb46a51beec6fb4
Reviewed-by: J-P Nurmi <jpnurmi@digia.com>
Diffstat (limited to 'src/controls/SpinBox.qml')
-rw-r--r-- | src/controls/SpinBox.qml | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/controls/SpinBox.qml b/src/controls/SpinBox.qml index bf8e6647..2f90ff95 100644 --- a/src/controls/SpinBox.qml +++ b/src/controls/SpinBox.qml @@ -201,10 +201,10 @@ Control { id: input clip: true anchors.fill: parent - anchors.leftMargin: __panel ? __panel.margins.left : 0 - anchors.topMargin: __panel ? __panel.margins.top : 0 - anchors.rightMargin: __panel ? __panel.margins.right: 0 - anchors.bottomMargin: __panel ? __panel.margins.bottom: 0 + anchors.leftMargin: __style ? __style.padding.left : 0 + anchors.topMargin: __style ? __style.padding.top : 0 + anchors.rightMargin: __style ? __style.padding.right: 0 + anchors.bottomMargin: __style ? __style.padding.bottom: 0 focus: true activeFocusOnPress: spinbox.activeFocusOnPress |