summaryrefslogtreecommitdiffstats
path: root/src/gui
diff options
context:
space:
mode:
authorikause <qt-info@nokia.com>2009-05-26 11:08:17 (GMT)
committerJason Barron <jbarron@trolltech.com>2009-05-29 08:00:17 (GMT)
commit436a2fdde1268ce548097d36df234e027b83b856 (patch)
treeeedacdbc87bbf13cda58d17e60103be5dfcfce29 /src/gui
parent79e8a5f2fb7d4627cc41371e7a6b64cbcf1b4046 (diff)
downloadQt-436a2fdde1268ce548097d36df234e027b83b856.zip
Qt-436a2fdde1268ce548097d36df234e027b83b856.tar.gz
Qt-436a2fdde1268ce548097d36df234e027b83b856.tar.bz2
A fix for a bug 252798
AVKON will show blanker - this will allow applications to change their layout and ensures that 'intermediate' states are not shown to the end user. This blanker is a full screen window and this causes Qt application to receive visibility change event (not visible) and then Qt application deletes backing store. Finally, when blanker is removed, Qt application receives another visibility change event (fully or partially visible) and backing store is recreated, but the original version does not ensure that window contents are valid. In fact, because of orientation change event, window server generates redraw request and it is handled before receiving that second visibility change event. In QSymbianControl::Draw doesn't draw anything. By adding this update() call, we ensure that window will be drawn correctly eventually. Reviewed-by: Jason Barron <jason.barron@nokia.com>
Diffstat (limited to 'src/gui')
-rw-r--r--src/gui/kernel/qapplication_s60.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/gui/kernel/qapplication_s60.cpp b/src/gui/kernel/qapplication_s60.cpp
index 5b2c1fb..b4658da 100644
--- a/src/gui/kernel/qapplication_s60.cpp
+++ b/src/gui/kernel/qapplication_s60.cpp
@@ -1011,6 +1011,7 @@ int QApplication::s60ProcessEvent(TWsEvent *event)
} else if ((visChangedEvent->iFlags & TWsVisibilityChangedEvent::EPartiallyVisible)
&& !w->d_func()->maybeBackingStore()) {
w->d_func()->topData()->backingStore = new QWidgetBackingStore(w);
+ w->update();
}
return 1;
}