diff options
| author | Frank Reininghaus <[email protected]> | 2012-01-16 19:59:54 +0100 |
|---|---|---|
| committer | Frank Reininghaus <[email protected]> | 2012-01-16 20:03:49 +0100 |
| commit | 555364c006d24daad0755d949c770f44c47fb614 (patch) | |
| tree | da2140845471eccacc7cbf18314b3711e1110125 /src/kitemviews/kitemlistcontroller.h | |
| parent | a7295033e669cc651421b4d4262cb310589ac282 (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.h | 1 |
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; |
