diff options
author | Sami Merila <sami.merila@nokia.com> | 2011-04-04 08:42:29 (GMT) |
---|---|---|
committer | Sami Merila <sami.merila@nokia.com> | 2011-04-04 08:42:29 (GMT) |
commit | e708c337a7856195bb567746f028112fdb4de515 (patch) | |
tree | 829a49ec0d4ead971ae89d2a8cbb4f3993e4c487 | |
parent | eeb43433043dbcaa38177438cb6cba203fb01c96 (diff) | |
download | Qt-e708c337a7856195bb567746f028112fdb4de515.zip Qt-e708c337a7856195bb567746f028112fdb4de515.tar.gz Qt-e708c337a7856195bb567746f028112fdb4de515.tar.bz2 |
QApplication does not define flag for "single touch"
Qt application was previously not setting a native framework's flag to
indicate that is supports "single touch" (i.e. activating an item would
only need one tap, instead of one tap to highlight and another to
activate) for Sym^3.
This was causing the native dialogs launched from within the
application to behave as Sym^1 dialogs.
As a fix, set the native flag when running Qt in Sym^3.
Task-number: QT-4569
Reviewed-by: Jani Hautakangas
-rw-r--r-- | src/gui/s60framework/qs60mainappui.cpp | 9 |
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); } |