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
438aacb9
Commit
438aacb9
authored
Jul 08, 2015
by
Jeff
Browse files
Play cards only with double left click
Fix #340
parent
bfa002e5
Changes
1
Hide whitespace changes
Inline
Side-by-side
cockatrice/src/carditem.cpp
View file @
438aacb9
...
...
@@ -358,13 +358,15 @@ void CardItem::mouseReleaseEvent(QGraphicsSceneMouseEvent *event)
void
CardItem
::
mouseDoubleClickEvent
(
QGraphicsSceneMouseEvent
*
event
)
{
if
(
settingsCache
->
getDoubleClickToPlay
())
{
if
(
revealedCard
)
zone
->
removeCard
(
this
);
else
playCard
(
event
->
modifiers
().
testFlag
(
Qt
::
ShiftModifier
));
if
(
event
->
buttons
()
==
Qt
::
LeftButton
){
if
(
settingsCache
->
getDoubleClickToPlay
())
{
if
(
revealedCard
)
zone
->
removeCard
(
this
);
else
playCard
(
event
->
modifiers
().
testFlag
(
Qt
::
ShiftModifier
));
}
event
->
accept
();
}
event
->
accept
();
}
...
...
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