From 6236598d96cc8cc22cb1c3c96d103b7ccb05db48 Mon Sep 17 00:00:00 2001 From: Ari Lehtola Date: Tue, 7 Feb 2012 14:58:10 +0200 Subject: Fix for effects in Qt-applications startup MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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 Reviewed-by: Pasi Pentikäinen (cherry picked from commit fd97c5a83f2baf9186fea39f000492099cba7644) --- src/gui/kernel/qapplication_s60.cpp | 7 +++++++ 1 file changed, 7 insertions(+) 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(); -- cgit v1.2.1