summaryrefslogtreecommitdiffstats
path: root/src/gui
diff options
context:
space:
mode:
authorOlivier Goffart <ogoffart@trolltech.com>2009-10-08 08:02:03 (GMT)
committerOlivier Goffart <ogoffart@trolltech.com>2009-10-08 08:55:25 (GMT)
commit902ee9839bf6d03f5e1ff3f45fb1251d50d752be (patch)
tree27c955893b60a7ea3e27255fb0c551c5a7be926e /src/gui
parent0f290238385f3e272e2b8afcb89a7b64764d72be (diff)
downloadQt-902ee9839bf6d03f5e1ff3f45fb1251d50d752be.zip
Qt-902ee9839bf6d03f5e1ff3f45fb1251d50d752be.tar.gz
Qt-902ee9839bf6d03f5e1ff3f45fb1251d50d752be.tar.bz2
Let the platform plugin decide on the click policy on itemview
Reviewed-by: Jens Bache-Wiig
Diffstat (limited to 'src/gui')
-rw-r--r--src/gui/kernel/qguiplatformplugin_p.h2
-rw-r--r--src/gui/styles/qcommonstyle.cpp2
2 files changed, 2 insertions, 2 deletions
diff --git a/src/gui/kernel/qguiplatformplugin_p.h b/src/gui/kernel/qguiplatformplugin_p.h
index f7d4b92..2a70ee7 100644
--- a/src/gui/kernel/qguiplatformplugin_p.h
+++ b/src/gui/kernel/qguiplatformplugin_p.h
@@ -94,7 +94,7 @@ class Q_GUI_EXPORT QGuiPlatformPlugin : public QObject, public QGuiPlatformPlugi
virtual QStringList iconThemeSearchPaths();
virtual QIcon fileSystemIcon(const QFileInfo &);
- enum PlatformHint { PH_ToolButtonStyle, PH_ToolBarIconSize };
+ enum PlatformHint { PH_ToolButtonStyle, PH_ToolBarIconSize, PH_ItemView_ActivateItemOnSingleClick };
virtual int platformHint(PlatformHint hint);
diff --git a/src/gui/styles/qcommonstyle.cpp b/src/gui/styles/qcommonstyle.cpp
index 612258a..5886512 100644
--- a/src/gui/styles/qcommonstyle.cpp
+++ b/src/gui/styles/qcommonstyle.cpp
@@ -5058,7 +5058,7 @@ int QCommonStyle::styleHint(StyleHint sh, const QStyleOption *opt, const QWidget
break;
case SH_ItemView_ActivateItemOnSingleClick:
- ret = false;
+ ret = qt_guiPlatformPlugin()->platformHint(QGuiPlatformPlugin::PH_ItemView_ActivateItemOnSingleClick);
break;
case SH_TitleBar_ModifyNotification: