diff options
author | Qt Continuous Integration System <qt-info@nokia.com> | 2010-05-25 12:37:43 (GMT) |
---|---|---|
committer | Qt Continuous Integration System <qt-info@nokia.com> | 2010-05-25 12:37:43 (GMT) |
commit | 977a7e097f4a2effb43704b9e069576d958842ea (patch) | |
tree | 7dad9e7c6048bfe9b3f084d654df2d61021a9955 /src | |
parent | 54c0f47be0e8e0aedbfe0d620970793a078ca43b (diff) | |
parent | 7efefb3b0f651d66523dad8fe95c764d0024e687 (diff) | |
download | Qt-977a7e097f4a2effb43704b9e069576d958842ea.zip Qt-977a7e097f4a2effb43704b9e069576d958842ea.tar.gz Qt-977a7e097f4a2effb43704b9e069576d958842ea.tar.bz2 |
Merge branch '4.6' of scm.dev.nokia.troll.no:qt/qt-s60-public into 4.6-integration
* '4.6' of scm.dev.nokia.troll.no:qt/qt-s60-public:
Qt app draws background incorrectly when animated wallpaper is used
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); } |