mirror of
https://github.com/Cockatrice/Cockatrice.git
synced 2026-07-02 03:23:56 -07:00
Merge pull request #6 from skoh-fley/cursorhandclenchbug
Fixed a cursor bug
This commit is contained in:
commit
1accaffb70
1 changed files with 1 additions and 1 deletions
|
|
@ -331,7 +331,6 @@ void CardItem::mouseReleaseEvent(QGraphicsSceneMouseEvent *event)
|
||||||
if (!cardMenu->isEmpty())
|
if (!cardMenu->isEmpty())
|
||||||
cardMenu->exec(event->screenPos());
|
cardMenu->exec(event->screenPos());
|
||||||
} else if ((event->button() == Qt::LeftButton) && !settingsCache->getDoubleClickToPlay()) {
|
} else if ((event->button() == Qt::LeftButton) && !settingsCache->getDoubleClickToPlay()) {
|
||||||
setCursor(Qt::OpenHandCursor);
|
|
||||||
|
|
||||||
bool hideCard = false;
|
bool hideCard = false;
|
||||||
if (zone->getIsView()) {
|
if (zone->getIsView()) {
|
||||||
|
|
@ -345,6 +344,7 @@ void CardItem::mouseReleaseEvent(QGraphicsSceneMouseEvent *event)
|
||||||
playCard(event->modifiers().testFlag(Qt::ShiftModifier));
|
playCard(event->modifiers().testFlag(Qt::ShiftModifier));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
setCursor(Qt::OpenHandCursor);
|
||||||
AbstractCardItem::mouseReleaseEvent(event);
|
AbstractCardItem::mouseReleaseEvent(event);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue