From 63cce810a3fd504c6077cbfb7bf10ed35ff1477f Mon Sep 17 00:00:00 2001 From: Frank Reininghaus Date: Mon, 16 Jan 2012 19:59:54 +0100 Subject: If an item is clicked to trigger it, clear the rest of the selection Note that the clearing is not done on mouse press, but on mouse release. The reason is that there are situations when multiple items are selected and pressing the mouse on one of them should not clear the selection (e.g., drag and drop of multiple items). BUG: 290854 REVIEW: 103703 FIXED-IN: 4.8.0 --- src/kitemviews/kitemlistcontroller.h | 1 + 1 file changed, 1 insertion(+) (limited to 'src/kitemviews/kitemlistcontroller.h') diff --git a/src/kitemviews/kitemlistcontroller.h b/src/kitemviews/kitemlistcontroller.h index b7efbde74..d0e5f72ec 100644 --- a/src/kitemviews/kitemlistcontroller.h +++ b/src/kitemviews/kitemlistcontroller.h @@ -260,6 +260,7 @@ private: private: bool m_singleClickActivation; bool m_selectionTogglePressed; + bool m_clearSelectionIfItemsAreNotDragged; SelectionBehavior m_selectionBehavior; KItemModelBase* m_model; KItemListView* m_view; -- cgit v1.3