Fix item polishing
authorJ-P Nurmi <jpnurmi@digia.com>
Wed, 19 Feb 2014 15:35:15 +0000 (16:35 +0100)
committerThe Qt Project <gerrit-noreply@qt-project.org>
Thu, 20 Feb 2014 20:25:32 +0000 (21:25 +0100)
commit43f983350a548b1b663ea07a0e87e4cc58834214
treef0ef7245257cfd3e414c99de9e88904689f7aba3
parent487d72488cf9d86b1aed352a0cfe1c4f7274099d
Fix item polishing

After "Dont call updatePolish if an item is not visible" (439f31f) and
"Fix polishItems bug" (01e609e), desktop style animations for QtQuick
Controls were no longer running. This was because QQuickItem::polish()
no longer polished a _visible_ item when there were other _hidden_
items in the queue to be polished.

This change restores the old logic that QQuickWindow only keeps track
of visible items to be polished, whilst the idea of hidden items not
being polished still remains valid. QQuickItem is made responsible
for polishing itself if necessary when it becomes visible.

Task-number: QTBUG-36934
Change-Id: I4d48d3a3e2c841d337cd52ec4fd27092f84a8626
Reviewed-by: Gunnar Sletta <gunnar.sletta@jollamobile.com>
src/quick/items/qquickitem.cpp
src/quick/items/qquickwindow.cpp
tests/auto/quick/qquickitem/tst_qquickitem.cpp