Allow size hint changes during a rearrange.
authorJan Arve Saether <jan-arve.saether@digia.com>
Wed, 15 Jan 2014 12:22:12 +0000 (13:22 +0100)
committerThe Qt Project <gerrit-noreply@qt-project.org>
Tue, 28 Jan 2014 11:13:52 +0000 (12:13 +0100)
commit17788ca8f0d6fe4fb0d03e99e34ed667fde54379
treea10790a239ff94cca7d2df096bbdb9c18f2a8d29
parent5dc805c86077ee9cd10af530f802fdda879cfb6a
Allow size hint changes during a rearrange.

Previously, we marked the layout as not dirty straight after a
rearrange was done. However, in the case of when a size hint changed
during a rearrange that would block the pending rearrange (since it
only perform the actual rearrange if its dirty).

Instead, mark the layout as not dirty *before* the rearrange.

This will allow bindings such as
  implicitWidth: height
to execute the pending rearrange.
(Although such bindings are not encouraged)

Task-number: QTBUG-36169
Change-Id: I75bd821a0ca4302026bd5dac01287ca3359d471b
Reviewed-by: J-P Nurmi <jpnurmi@digia.com>
src/layouts/qquicklinearlayout.cpp
tests/auto/controls/data/tst_rowlayout.qml