diff options
author | Shane Kearns <shane.kearns@sosco.com> | 2009-10-21 11:52:07 (GMT) |
---|---|---|
committer | Shane Kearns <shane.kearns@sosco.com> | 2009-10-21 12:31:54 (GMT) |
commit | 522fc01a18b9eae80b733befb98a948f0fbbba06 (patch) | |
tree | bce11b2090f55b9a36f187f0ee1d95702168ed24 /src/gui/kernel/qapplication_s60.cpp | |
parent | 5370e5ff5481a64a7d4a7c182155ce893740abe0 (diff) | |
download | Qt-522fc01a18b9eae80b733befb98a948f0fbbba06.zip Qt-522fc01a18b9eae80b733befb98a948f0fbbba06.tar.gz Qt-522fc01a18b9eae80b733befb98a948f0fbbba06.tar.bz2 |
Make Symbian emulator behave the same as device for mouse & touchscreen
Emulator HAL reports that it supports mouse but not touch.
Since Qt is changing behaviour based on these values, the emulator works
differently from the device.
To workaround, the emulator HAL values are ignored and following used:
5.0: mouse 0, touch 1
3.x: mouse 0, touch 0
The mouse can still be used to interact with the emulator, as pointer
events are still delivered.
Task-number: QTBUG-4803
Task-number: QTBUG-4616
Reviewed-by: Sami Merila
Diffstat (limited to 'src/gui/kernel/qapplication_s60.cpp')
-rw-r--r-- | src/gui/kernel/qapplication_s60.cpp | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/gui/kernel/qapplication_s60.cpp b/src/gui/kernel/qapplication_s60.cpp index d6fdd02..689429e 100644 --- a/src/gui/kernel/qapplication_s60.cpp +++ b/src/gui/kernel/qapplication_s60.cpp @@ -1092,6 +1092,13 @@ void qt_init(QApplicationPrivate * /* priv */, int) err = HAL::Get(HALData::EPen, touch); if (err != KErrNone || touchIsUnsupportedOnSystem) touch = 0; +#ifdef __WINS__ + if(QSysInfo::symbianVersion() <= QSysInfo::SV_9_4) { + //for symbian SDK emulator, force values to match typical devices. + mouse = 0; + touch = touchIsUnsupportedOnSystem ? 0 : 1; + } +#endif if (mouse || machineUID == KMachineUidSamsungI8510) { S60->hasTouchscreen = false; S60->virtualMouseRequired = false; |