diff options
author | Olivier Goffart <ogoffart@trolltech.com> | 2009-10-08 08:02:03 (GMT) |
---|---|---|
committer | Olivier Goffart <ogoffart@trolltech.com> | 2009-10-08 08:55:25 (GMT) |
commit | 902ee9839bf6d03f5e1ff3f45fb1251d50d752be (patch) | |
tree | 27c955893b60a7ea3e27255fb0c551c5a7be926e | |
parent | 0f290238385f3e272e2b8afcb89a7b64764d72be (diff) | |
download | Qt-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
-rw-r--r-- | src/gui/kernel/qguiplatformplugin_p.h | 2 | ||||
-rw-r--r-- | src/gui/styles/qcommonstyle.cpp | 2 |
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: |