mirror of
https://github.com/Cockatrice/Cockatrice.git
synced 2026-07-05 21:13:55 -07:00
[Game][Player] Split Player into PlayerLogic/PlayerGraphicsItem
Took 4 minutes Took 58 seconds Took 2 minutes
This commit is contained in:
parent
9e03f82616
commit
d7c867d741
1 changed files with 1 additions and 0 deletions
|
|
@ -476,6 +476,7 @@ void CardItem::mouseReleaseEvent(QGraphicsSceneMouseEvent *event)
|
||||||
{
|
{
|
||||||
if (event->button() == Qt::RightButton && owner != nullptr) {
|
if (event->button() == Qt::RightButton && owner != nullptr) {
|
||||||
emit rightClicked(this, event->screenPos());
|
emit rightClicked(this, event->screenPos());
|
||||||
|
return;
|
||||||
}
|
}
|
||||||
if ((event->modifiers() != Qt::AltModifier) && (event->button() == Qt::LeftButton) &&
|
if ((event->modifiers() != Qt::AltModifier) && (event->button() == Qt::LeftButton) &&
|
||||||
(!SettingsCache::instance().getDoubleClickToPlay())) {
|
(!SettingsCache::instance().getDoubleClickToPlay())) {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue