diff options
author | Jan-Arve Sæther <jan-arve.saether@nokia.com> | 2011-02-09 14:07:24 (GMT) |
---|---|---|
committer | Jan-Arve Sæther <jan-arve.saether@nokia.com> | 2011-04-14 10:27:58 (GMT) |
commit | 42bbdbef501caec06981981585a0302339818ac6 (patch) | |
tree | 7bd0aba34f96f424cbbf3a1928e0e0dbd919ca48 /tests/auto/qnetworkreply/qnetworkreply.pro | |
parent | febdcef08f22310cbd70ec13b315f70ff8e41e83 (diff) | |
download | Qt-42bbdbef501caec06981981585a0302339818ac6.zip Qt-42bbdbef501caec06981981585a0302339818ac6.tar.gz Qt-42bbdbef501caec06981981585a0302339818ac6.tar.bz2 |
Avoid flicker when invalidate is propagated in a widget/layout hierarchy
* Do not call invalidate from activateRecursive().
This resulted in that a layout was invalidated as many times as there
were items in the layout.
* Several improvements. Do not call resize(size()) too often.
Calling resize() from the widgetEvent() is not very nice though...
* Remove commented out code
* make sure layout is activated even if the widget does not change size
* activate the layout if the resize is same as size()
* In order to not break existing apps, make this an opt-in feature
with QGraphicsLayout::setInstantInvalidatePropagation(true);
Reviewed-by: Frederik Gladhorn
Reviewed-by: John Tapsell
Diffstat (limited to 'tests/auto/qnetworkreply/qnetworkreply.pro')
0 files changed, 0 insertions, 0 deletions