summaryrefslogtreecommitdiffstats
path: root/src/gui/s60framework/qs60mainappui.cpp
diff options
context:
space:
mode:
authorThierry Bastian <thierry.bastian@nokia.com>2011-04-20 08:59:13 (GMT)
committerThierry Bastian <thierry.bastian@nokia.com>2011-04-20 08:59:13 (GMT)
commit97d57498481598d0d4babfa77f816761dead29b8 (patch)
tree8709b1f70c8ad75e225acf476e827cf4e15b85f3 /src/gui/s60framework/qs60mainappui.cpp
parent0edbaca5e7b718bb9bbbeaccc9e322b525b4327e (diff)
parent6037cb7f68fe0dec52f922d9e2f18c8e12a396cb (diff)
downloadQt-97d57498481598d0d4babfa77f816761dead29b8.zip
Qt-97d57498481598d0d4babfa77f816761dead29b8.tar.gz
Qt-97d57498481598d0d4babfa77f816761dead29b8.tar.bz2
Merge branch '4.7-upstream' into 4.7
Diffstat (limited to 'src/gui/s60framework/qs60mainappui.cpp')
-rw-r--r--src/gui/s60framework/qs60mainappui.cpp9
1 files changed, 7 insertions, 2 deletions
diff --git a/src/gui/s60framework/qs60mainappui.cpp b/src/gui/s60framework/qs60mainappui.cpp
index b5b8b81..4842bc5 100644
--- a/src/gui/s60framework/qs60mainappui.cpp
+++ b/src/gui/s60framework/qs60mainappui.cpp
@@ -61,6 +61,7 @@
//Animated wallpapers in Qt applications are not supported.
const TInt KAknDisableAnimationBackground = 0x02000000;
+const TInt KAknSingleClickCompatible = 0x01000000;
QT_BEGIN_NAMESPACE
@@ -117,8 +118,12 @@ void QS60MainAppUi::ConstructL()
// 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;
+
+ // Also, add support for single touch for post 5th edition platforms.
+ // This has only impact when launching native dialogs/menus from inside QApplication.
+ if (QSysInfo::s60Version() > QSysInfo::SV_S60_5_0) {
+ flags |= (KAknDisableAnimationBackground | KAknSingleClickCompatible);
+ }
#endif
BaseConstructL(flags);
}