summaryrefslogtreecommitdiffstats
path: root/src/gui/styles/qs60style_s60.cpp
diff options
context:
space:
mode:
authorSami Merila <sami.merila@nokia.com>2010-01-25 13:58:56 (GMT)
committerSami Merila <sami.merila@nokia.com>2010-01-25 13:58:56 (GMT)
commit9bb9991b7c6182249cbf922e4718e1c64e3c6433 (patch)
treeeef4e4d511f43a249cc13854d609768716f2d1f5 /src/gui/styles/qs60style_s60.cpp
parent5f9d86d137eedf45d1067dd54b1d54c2e1eab4b9 (diff)
downloadQt-9bb9991b7c6182249cbf922e4718e1c64e3c6433.zip
Qt-9bb9991b7c6182249cbf922e4718e1c64e3c6433.tar.gz
Qt-9bb9991b7c6182249cbf922e4718e1c64e3c6433.tar.bz2
QListWidget itemActivated does not follow S60 conventions
Set StyleHint SH_ItemView_ActivateItemOnSingleClick inactive for 3.x and 5th edition S60. Task-number: QTBUG-6182 Reviewed-by: Alessandro Portale
Diffstat (limited to 'src/gui/styles/qs60style_s60.cpp')
-rw-r--r--src/gui/styles/qs60style_s60.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/gui/styles/qs60style_s60.cpp b/src/gui/styles/qs60style_s60.cpp
index 5f3a499..a3bb169 100644
--- a/src/gui/styles/qs60style_s60.cpp
+++ b/src/gui/styles/qs60style_s60.cpp
@@ -649,6 +649,11 @@ bool QS60StylePrivate::hasSliderGrooveGraphic()
return QSysInfo::s60Version() != QSysInfo::SV_S60_3_1;
}
+bool QS60StylePrivate::isSingleClickUi()
+{
+ return (QSysInfo::s60Version() > QSysInfo::SV_S60_5_0);
+}
+
QPoint qt_s60_fill_background_offset(const QWidget *targetWidget)
{
CCoeControl *control = targetWidget->effectiveWinId();