diff options
author | Jan Arve Sæther <jan-arve.saether@qt.io> | 2020-06-09 11:13:01 +0200 |
---|---|---|
committer | Jan Arve Sæther <jan-arve.saether@qt.io> | 2020-06-09 09:20:49 +0000 |
commit | 03de3ccf37a006c35b2db4891b16c717d9bad4ca (patch) | |
tree | 5a8e740377a65926ad73447dc2243bae6c886266 /src/imports/nativestyle/items/qquickstyleitem.h | |
parent | 4048645d204173a5d7ae5c1548611f2d6b003c97 (diff) |
Reorder properties into the same order as QMargins ctor (l,t,r,b)
Otherwise, doing a console.log(groupboxPaddings) results in:
DefaultGroupBox.qml(88): QQuickStyleMargins(0, 0, 10, 0)
which might mislead people into believeing that the right margin is 10.
Change-Id: I25a3db40cb63d11841b72aad7bdf9889e6578e37
Reviewed-by: Richard Moe Gustavsen <richard.gustavsen@qt.io>
Diffstat (limited to 'src/imports/nativestyle/items/qquickstyleitem.h')
-rw-r--r-- | src/imports/nativestyle/items/qquickstyleitem.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/imports/nativestyle/items/qquickstyleitem.h b/src/imports/nativestyle/items/qquickstyleitem.h index 47247e15..1016ef71 100644 --- a/src/imports/nativestyle/items/qquickstyleitem.h +++ b/src/imports/nativestyle/items/qquickstyleitem.h @@ -72,8 +72,8 @@ class QQuickStyleMargins Q_GADGET Q_PROPERTY(int left READ left()) - Q_PROPERTY(int right READ right()) Q_PROPERTY(int top READ top()) + Q_PROPERTY(int right READ right()) Q_PROPERTY(int bottom READ bottom()) QML_NAMED_ELEMENT(StyleMargins) |