diff options
author | Sami Merila <sami.merila@nokia.com> | 2010-05-25 10:59:08 (GMT) |
---|---|---|
committer | Sami Merila <sami.merila@nokia.com> | 2010-05-25 10:59:08 (GMT) |
commit | 7efefb3b0f651d66523dad8fe95c764d0024e687 (patch) | |
tree | cc27e55ad0df3b24f310b0a49aa9c61614053ab7 /src | |
parent | 54b3c2bb7909cf195d81eeebf2be66d2685bb20d (diff) | |
download | Qt-7efefb3b0f651d66523dad8fe95c764d0024e687.zip Qt-7efefb3b0f651d66523dad8fe95c764d0024e687.tar.gz Qt-7efefb3b0f651d66523dad8fe95c764d0024e687.tar.bz2 |
Qt app draws background incorrectly when animated wallpaper is used
In Symbian^3 OS supports animated wallpapers. Unfortunately animation
is drawn to separate surface underneath the application surface. To
avoid fiddling with system surfaces, Qt apps indicate to the
OS that application does not support animated wallpaper and thus,
system draws a "regular" wallpaper for the application.
This feature is supported only in Sym^3.
Task-number: QT-3148
Reviewed-by: Shane Kearns
Diffstat (limited to 'src')
-rw-r--r-- | src/gui/s60framework/qs60mainappui.cpp | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/gui/s60framework/qs60mainappui.cpp b/src/gui/s60framework/qs60mainappui.cpp index feffc9f..ce13de8 100644 --- a/src/gui/s60framework/qs60mainappui.cpp +++ b/src/gui/s60framework/qs60mainappui.cpp @@ -64,6 +64,9 @@ #include <private/qt_s60_p.h> #include <qdebug.h> +//Animated wallpapers in Qt applications are not supported. +const TInt KAknDisableAnimationBackground = 0x02000000; + QT_BEGIN_NAMESPACE /*! @@ -115,6 +118,11 @@ void QS60MainAppUi::ConstructL() TInt flags = CAknAppUi::EAknEnableSkin | CAknAppUi::ENoScreenFurniture | CAknAppUi::ENonStandardResourceFile; + // After 5th Edition S60, native side supports animated wallpapers. + // However, there is no support for that feature on Qt side, so indicate to + // native UI framework that this application will not support background animations. + if (QSysInfo::s60Version() > QSysInfo::SV_S60_5_0) + flags |= KAknDisableAnimationBackground; BaseConstructL(flags); } |