From 1c10fe944065914c7c501eeb657af631d6e0ffcf Mon Sep 17 00:00:00 2001 From: Thomas Hartmann Date: Fri, 5 Jun 2020 16:38:21 +0200 Subject: [PATCH] QmlDesigner: Adjust selection behaivour User want to select multiple items with special key + click (shift + click and/or ctrl+ click). Change-Id: I6bf17730983e5d8f199785bf35605f7eb67ec569 Reviewed-by: Thomas Hartmann --- .../qmldesigner/components/formeditor/selectiontool.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/plugins/qmldesigner/components/formeditor/selectiontool.cpp b/src/plugins/qmldesigner/components/formeditor/selectiontool.cpp index a5f5a786177..c23e540a4bb 100644 --- a/src/plugins/qmldesigner/components/formeditor/selectiontool.cpp +++ b/src/plugins/qmldesigner/components/formeditor/selectiontool.cpp @@ -178,9 +178,9 @@ void SelectionTool::mouseReleaseEvent(const QList &itemList, m_singleSelectionManipulator.begin(event->scenePos()); if (event->modifiers().testFlag(Qt::ControlModifier)) - m_singleSelectionManipulator.select(SingleSelectionManipulator::RemoveFromSelection); + m_singleSelectionManipulator.select(SingleSelectionManipulator::InvertSelection); else if (event->modifiers().testFlag(Qt::ShiftModifier)) - m_singleSelectionManipulator.select(SingleSelectionManipulator::AddToSelection); + m_singleSelectionManipulator.select(SingleSelectionManipulator::InvertSelection); else m_singleSelectionManipulator.select(SingleSelectionManipulator::ReplaceSelection);