summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAri Lehtola <ext-ari.lehtola@nokia.com>2012-02-07 14:58:10 +0200
committerPasi Pentikäinen <ext-pasi.a.pentikainen@nokia.com>2012-02-10 10:30:26 +0100
commit6236598d96cc8cc22cb1c3c96d103b7ccb05db48 (patch)
treec5361446a8cfff4a000eabd46d10a0ac3ae145c5
parenta717c3853306f71c21d081a2ae861bc153c9700e (diff)
downloadqt4-tools-6236598d96cc8cc22cb1c3c96d103b7ccb05db48.tar.gz
Fix for effects in Qt-applications startup
This is part of the solution for reducing flickering in Qt-applications startup. Fix is effective together with changes in platform effects framework. Task-Number: ou1cimx1#951526 Change-Id: Ia8d0544ec30741605efd6f7db035bcea2f36e67a Reviewed-by: Murray Read <ext-murray.2.read@nokia.com> Reviewed-by: Pasi Pentikäinen <ext-pasi.a.pentikainen@nokia.com> (cherry picked from commit fd97c5a83f2baf9186fea39f000492099cba7644)
-rw-r--r--src/gui/kernel/qapplication_s60.cpp7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/gui/kernel/qapplication_s60.cpp b/src/gui/kernel/qapplication_s60.cpp
index 9b191dc9ec..00c83ba597 100644
--- a/src/gui/kernel/qapplication_s60.cpp
+++ b/src/gui/kernel/qapplication_s60.cpp
@@ -1946,6 +1946,13 @@ void qt_init(QApplicationPrivate * /* priv */, int)
TSecureId securId = me.SecureId();
S60->uid = securId.operator TUid();
+ // Notify uiaccelerator, that we are qt application. This info is used for
+ // decision making how startup effects are shown.
+ GfxTransEffect::BeginFullScreen(AknTransEffect::ENone,
+ TRect(0, 0, 0, 0),
+ AknTransEffect::EParameterAvkonInternal,
+ AknTransEffect::GfxTransParam(S60->uid, KQtAppExitFlag));
+
// enable focus events - used to re-enable mouse after focus changed between mouse and non mouse app,
// and for dimming behind modal windows
S60->windowGroup().EnableFocusChangeEvents();