diff options
| author | Peter Penz <[email protected]> | 2011-08-20 23:26:07 +0200 |
|---|---|---|
| committer | Peter Penz <[email protected]> | 2011-08-20 23:27:23 +0200 |
| commit | 6a228cdbd94ae8cb8215d53187328c54cbc050bd (patch) | |
| tree | 30adae6e5844a917db0e640ece53e9f039ba75e7 /src/kitemviews/kitemlistcontroller.h | |
| parent | 2f0ceedae088158b8af24a5e94500a7d1c0edecb (diff) | |
Fix rubberband-issue in combination with Shift- and Control-key
The old selection must be remembered before starting the rubberband
selection, otherwise it would not be possible anymore to deselect
items that have been selected by the rubberband itself.
Diffstat (limited to 'src/kitemviews/kitemlistcontroller.h')
| -rw-r--r-- | src/kitemviews/kitemlistcontroller.h | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/src/kitemviews/kitemlistcontroller.h b/src/kitemviews/kitemlistcontroller.h index 49442c643..90850bae1 100644 --- a/src/kitemviews/kitemlistcontroller.h +++ b/src/kitemviews/kitemlistcontroller.h @@ -26,6 +26,7 @@ #include <libdolphin_export.h> #include <QObject> +#include <QSet> class KItemModelBase; class KItemListSelectionManager; @@ -134,6 +135,14 @@ private: KItemListView* m_view; KItemListSelectionManager* m_selectionManager; int m_pressedIndex; + + /** + * When starting a rubberband selection during a Shift- or Control-key has been + * pressed the current selection should never be deleted. To be able to restore + * the current selection it is remembered in m_oldSelection before + * rubberband gets activated. + */ + QSet<int> m_oldSelection; }; #endif |
