diff options
author | Alan Alpert <[email protected]> | 2013-04-11 16:57:19 -0700 |
---|---|---|
committer | The Qt Project <[email protected]> | 2013-04-26 21:17:42 +0200 |
commit | 53e317468626284fe26877659dff551ce3bc0e55 (patch) | |
tree | bb129a2df33f3a283bcb7e6f33be6b00659b4467 /src/quick/items/qquickitemview_p.h | |
parent | 8563adb737cec5d440197ddbd514fe201c5f18ff (diff) |
No longer apply pending changes when accessing ItemView properties
Applying changes in the getters can lead to binding loops, and is
currently inconsistently applied. Removing the applyPendingChanges calls
from remaining getters, and adding a forceLayout() function for cases
where the immediate-apply behavior is needed.
Task-number: QTBUG-30555
Parts-of-patch-by: Albert Astals Cid
Change-Id: I64632601e02f2a53060296ab7739577a749d916f
Reviewed-by: Andrew den Exter <[email protected]>
Reviewed-by: Albert Astals Cid <[email protected]>
Diffstat (limited to 'src/quick/items/qquickitemview_p.h')
-rw-r--r-- | src/quick/items/qquickitemview_p.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/quick/items/qquickitemview_p.h b/src/quick/items/qquickitemview_p.h index b0f910680a..d7812bcdad 100644 --- a/src/quick/items/qquickitemview_p.h +++ b/src/quick/items/qquickitemview_p.h @@ -202,6 +202,7 @@ public: Q_INVOKABLE QQuickItem *itemAt(qreal x, qreal y) const; Q_INVOKABLE void positionViewAtBeginning(); Q_INVOKABLE void positionViewAtEnd(); + Q_REVISION(1) Q_INVOKABLE void forceLayout(); virtual void setContentX(qreal pos); virtual void setContentY(qreal pos); |