diff options
author | Jan-Arve Sæther <jan-arve.saether@nokia.com> | 2011-02-09 15:07:24 +0100 |
---|---|---|
committer | Thierry Bastian <thierry.bastian@nokia.com> | 2011-05-12 15:47:26 +0200 |
commit | 913ff732004c2c61c39bcdd82ff05ea1827f328b (patch) | |
tree | 7e0b50b23cabaf3643fd64806e8ab6577e7e86d5 /doc | |
parent | 1ce725cb60358a31b1107ab5c892abb7ceca8453 (diff) |
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 'doc')
0 files changed, 0 insertions, 0 deletions