┌   ┐
54
└   ┘

summaryrefslogtreecommitdiff
path: root/src/kitemviews/kitemlistcontroller.h
diff options
context:
space:
mode:
authorFrank Reininghaus <[email protected]>2012-01-16 19:59:54 +0100
committerFrank Reininghaus <[email protected]>2012-01-16 20:03:49 +0100
commit555364c006d24daad0755d949c770f44c47fb614 (patch)
treeda2140845471eccacc7cbf18314b3711e1110125 /src/kitemviews/kitemlistcontroller.h
parenta7295033e669cc651421b4d4262cb310589ac282 (diff)
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 (cherry picked from commit 9f711b5f2e1d1fd856cd6b033e6adb96f9b46d8a)
Diffstat (limited to 'src/kitemviews/kitemlistcontroller.h')
-rw-r--r--src/kitemviews/kitemlistcontroller.h1
1 files changed, 1 insertions, 0 deletions
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;