diff options
| author | Frank Reininghaus <[email protected]> | 2011-08-03 00:37:38 +0200 |
|---|---|---|
| committer | Frank Reininghaus <[email protected]> | 2011-08-03 00:44:36 +0200 |
| commit | e326199727328bf8e130632361f697e7a350fd9b (patch) | |
| tree | 5505b7e75d2f79d023f3ecff15dcda950a61febe /src/kitemviews/kitemlistcontroller.cpp | |
| parent | 354735786254d13a4df487d9fbd135384ae6c434 (diff) | |
Shift-clicks and Control-clicks should not open the item
Diffstat (limited to 'src/kitemviews/kitemlistcontroller.cpp')
| -rw-r--r-- | src/kitemviews/kitemlistcontroller.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/kitemviews/kitemlistcontroller.cpp b/src/kitemviews/kitemlistcontroller.cpp index b58ddfae6..aab40631e 100644 --- a/src/kitemviews/kitemlistcontroller.cpp +++ b/src/kitemviews/kitemlistcontroller.cpp @@ -164,6 +164,10 @@ bool KItemListController::mouseReleaseEvent(QGraphicsSceneMouseEvent* event, con emit itemExpansionToggleClicked(index); emitItemClicked = false; } + else if (event->modifiers() & Qt::ShiftModifier || event->modifiers() & Qt::ControlModifier) { + // The mouse click should only update the selection, not trigger the item. + emitItemClicked = false; + } } if (emitItemClicked) { |
