┌   ┐
54
└   ┘

summaryrefslogtreecommitdiff
path: root/src/kitemviews/kitemlistcontroller.cpp
diff options
context:
space:
mode:
authorFrank Reininghaus <[email protected]>2011-08-03 00:37:38 +0200
committerFrank Reininghaus <[email protected]>2011-08-03 00:44:36 +0200
commite326199727328bf8e130632361f697e7a350fd9b (patch)
tree5505b7e75d2f79d023f3ecff15dcda950a61febe /src/kitemviews/kitemlistcontroller.cpp
parent354735786254d13a4df487d9fbd135384ae6c434 (diff)
Shift-clicks and Control-clicks should not open the item
Diffstat (limited to 'src/kitemviews/kitemlistcontroller.cpp')
-rw-r--r--src/kitemviews/kitemlistcontroller.cpp4
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) {