From 85ed71eb30487b653f01359e97371c6230737c44 Mon Sep 17 00:00:00 2001 From: Aniket Anvit Date: Tue, 5 Feb 2013 19:58:06 +0100 Subject: Apply changes of the KGlobalSettings::singleClick() setting immediately Fixes a regression introduced by commit 7a364cbf489af25e123d18713523151a3a53f814. Patch reviewed and pushed by Frank Reininghaus. BUG: 313342 FIXED-IN: 4.10.1 --- src/kitemviews/kitemlistcontroller.h | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) (limited to 'src/kitemviews/kitemlistcontroller.h') diff --git a/src/kitemviews/kitemlistcontroller.h b/src/kitemviews/kitemlistcontroller.h index 235e4a9eb..4d5fee345 100644 --- a/src/kitemviews/kitemlistcontroller.h +++ b/src/kitemviews/kitemlistcontroller.h @@ -129,12 +129,11 @@ public: /** * If set to true, the signals itemActivated() and itemsActivated() are emitted - * after a single-click of the left mouse button. If set to false, a double-click - * is required. Per default the setting from KGlobalSettings::singleClick() is - * used. + * after a single-click of the left mouse button. If set to false (the default), + * the setting from KGlobalSettings::singleClick() is used. */ - void setSingleClickActivation(bool singleClick); - bool singleClickActivation() const; + void setSingleClickActivationEnforced(bool singleClick); + bool singleClickActivationEnforced() const; virtual bool showEvent(QShowEvent* event); virtual bool hideEvent(QHideEvent* event); @@ -301,7 +300,7 @@ private: void updateExtendedSelectionRegion(); private: - bool m_singleClickActivation; + bool m_singleClickActivationEnforced; bool m_selectionTogglePressed; bool m_clearSelectionIfItemsAreNotDragged; SelectionBehavior m_selectionBehavior; -- cgit v1.3