diff options
author | Mitch Curtis <mitch.curtis@qt.io> | 2018-05-09 13:14:45 +0200 |
---|---|---|
committer | Mitch Curtis <mitch.curtis@qt.io> | 2018-05-09 11:57:23 +0000 |
commit | 20a5d1ab3f47b4da6ba39143beaafedb26dbad6a (patch) | |
tree | b6d0c7573ad6cc68238e9d5c72c8347eaf1a9022 /src/quick/items/qquickscalegrid.cpp | |
parent | bbcf4193b35e3931205d32e87c0c3de9f68cc584 (diff) |
BorderImage: fix binding loop warning when binding to border properties
Give each border property its own change signal, but keep using the
borderChanged signal in the way it was being used previously.
It's not possible to auto test this, as there's no way to check
for binding loop warnings and the use case that fails doesn't cause
a noticeable difference in any properties that we could test.
Task-number: QTBUG-67901
Change-Id: Id5f029bc738ed15477c8d99ab8665ce78afbe5cf
Reviewed-by: Simon Hausmann <simon.hausmann@qt.io>
Diffstat (limited to 'src/quick/items/qquickscalegrid.cpp')
-rw-r--r-- | src/quick/items/qquickscalegrid.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/quick/items/qquickscalegrid.cpp b/src/quick/items/qquickscalegrid.cpp index d7a0f1b681..23f179be1d 100644 --- a/src/quick/items/qquickscalegrid.cpp +++ b/src/quick/items/qquickscalegrid.cpp @@ -66,6 +66,7 @@ void QQuickScaleGrid::setLeft(int pos) { if (_left != pos) { _left = pos; + emit leftBorderChanged(); emit borderChanged(); } } @@ -74,6 +75,7 @@ void QQuickScaleGrid::setTop(int pos) { if (_top != pos) { _top = pos; + emit topBorderChanged(); emit borderChanged(); } } @@ -82,6 +84,7 @@ void QQuickScaleGrid::setRight(int pos) { if (_right != pos) { _right = pos; + emit rightBorderChanged(); emit borderChanged(); } } @@ -90,6 +93,7 @@ void QQuickScaleGrid::setBottom(int pos) { if (_bottom != pos) { _bottom = pos; + emit bottomBorderChanged(); emit borderChanged(); } } |