mirror of
https://github.com/Cockatrice/Cockatrice.git
synced 2026-06-11 00:24:47 -07:00
double click on zones opens zone view
This commit is contained in:
parent
04a3d311be
commit
a246a8d561
3 changed files with 14 additions and 5 deletions
|
|
@ -27,6 +27,12 @@ void CardZone::clearContents()
|
|||
cards->clear();
|
||||
}
|
||||
|
||||
void CardZone::mouseDoubleClickEvent(QGraphicsSceneMouseEvent *event)
|
||||
{
|
||||
if (doubleClickAction)
|
||||
doubleClickAction->trigger();
|
||||
}
|
||||
|
||||
void CardZone::mousePressEvent(QGraphicsSceneMouseEvent *event)
|
||||
{
|
||||
if (event->button() == Qt::RightButton) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue