Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Marco Bubke
flatpak-qt-creator
Commits
4b19473a
Commit
4b19473a
authored
May 10, 2011
by
Thomas Hartmann
Browse files
QmlDesigner.formEditor: do not invert selection on click
Reviewed-by: Marco Bubke Task-number: QTCREATORBUG-4819
parent
040f2e0b
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/plugins/qmldesigner/components/formeditor/selectiontool.cpp
View file @
4b19473a
...
...
@@ -79,7 +79,7 @@ void SelectionTool::mousePressEvent(const QList<QGraphicsItem*> &itemList,
else
if
(
event
->
modifiers
().
testFlag
(
Qt
::
ShiftModifier
))
m_singleSelectionManipulator
.
select
(
SingleSelectionManipulator
::
AddToSelection
,
m_selectOnlyContentItems
);
else
m_singleSelectionManipulator
.
select
(
SingleSelectionManipulator
::
Invert
Selection
,
m_selectOnlyContentItems
);
m_singleSelectionManipulator
.
select
(
SingleSelectionManipulator
::
Replace
Selection
,
m_selectOnlyContentItems
);
}
else
{
if
(
event
->
modifiers
().
testFlag
(
Qt
::
AltModifier
))
{
m_singleSelectionManipulator
.
begin
(
event
->
scenePos
());
...
...
@@ -89,7 +89,7 @@ void SelectionTool::mousePressEvent(const QList<QGraphicsItem*> &itemList,
else
if
(
event
->
modifiers
().
testFlag
(
Qt
::
ShiftModifier
))
m_singleSelectionManipulator
.
select
(
SingleSelectionManipulator
::
AddToSelection
,
m_selectOnlyContentItems
);
else
m_singleSelectionManipulator
.
select
(
SingleSelectionManipulator
::
Invert
Selection
,
m_selectOnlyContentItems
);
m_singleSelectionManipulator
.
select
(
SingleSelectionManipulator
::
Replace
Selection
,
m_selectOnlyContentItems
);
m_singleSelectionManipulator
.
end
(
event
->
scenePos
());
view
()
->
changeToMoveTool
(
event
->
scenePos
());
...
...
@@ -178,7 +178,7 @@ void SelectionTool::mouseReleaseEvent(const QList<QGraphicsItem*> &/*itemList*/,
else
if
(
event
->
modifiers
().
testFlag
(
Qt
::
ShiftModifier
))
m_singleSelectionManipulator
.
select
(
SingleSelectionManipulator
::
AddToSelection
,
m_selectOnlyContentItems
);
else
m_singleSelectionManipulator
.
select
(
SingleSelectionManipulator
::
Invert
Selection
,
m_selectOnlyContentItems
);
m_singleSelectionManipulator
.
select
(
SingleSelectionManipulator
::
Replace
Selection
,
m_selectOnlyContentItems
);
m_singleSelectionManipulator
.
end
(
event
->
scenePos
());
}
else
{
...
...
@@ -277,7 +277,7 @@ void SelectionTool::selectUnderPoint(QGraphicsSceneMouseEvent *event)
else
if
(
event
->
modifiers
().
testFlag
(
Qt
::
ShiftModifier
))
m_singleSelectionManipulator
.
select
(
SingleSelectionManipulator
::
AddToSelection
,
m_selectOnlyContentItems
);
else
m_singleSelectionManipulator
.
select
(
SingleSelectionManipulator
::
Invert
Selection
,
m_selectOnlyContentItems
);
m_singleSelectionManipulator
.
select
(
SingleSelectionManipulator
::
Replace
Selection
,
m_selectOnlyContentItems
);
m_singleSelectionManipulator
.
end
(
event
->
scenePos
());
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment