Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Donald Haase
Cockatrice
Commits
126c64d5
Commit
126c64d5
authored
Feb 14, 2015
by
Gavin Bisesi
Browse files
Merge pull request #735 from kaiserfro/jo-ctrl-add-to-selection
ctrl-click to add a card to a selection.
parents
96af5bd0
08166f7d
Changes
1
Hide whitespace changes
Inline
Side-by-side
cockatrice/src/abstractcarditem.cpp
View file @
126c64d5
...
...
@@ -226,7 +226,10 @@ void AbstractCardItem::setFaceDown(bool _facedown)
void
AbstractCardItem
::
mousePressEvent
(
QGraphicsSceneMouseEvent
*
event
)
{
if
(
!
isSelected
())
{
if
((
event
->
modifiers
()
&
Qt
::
ControlModifier
))
{
setSelected
(
!
isSelected
());
}
else
if
(
!
isSelected
())
{
scene
()
->
clearSelection
();
setSelected
(
true
);
}
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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