Added MTGO-like card info widget, made original info widget hideable

This commit is contained in:
Max-Wilhelm Bruker 2010-10-13 15:38:32 +02:00
parent d6c00d6529
commit a215b3503a
7 changed files with 77 additions and 24 deletions

View file

@ -325,7 +325,7 @@ void CardItem::mouseMoveEvent(QGraphicsSceneMouseEvent *event)
scene()->addItem(childArrow);
arrow->addChildArrow(childArrow);
}
} else {
} else if (event->buttons().testFlag(Qt::LeftButton)) {
if ((event->screenPos() - event->buttonDownScreenPos(Qt::LeftButton)).manhattanLength() < 2 * QApplication::startDragDistance())
return;
if (!owner->getLocal())
@ -384,6 +384,7 @@ void CardItem::mouseReleaseEvent(QGraphicsSceneMouseEvent *event)
playCard(event);
setCursor(Qt::OpenHandCursor);
AbstractCardItem::mouseReleaseEvent(event);
}
void CardItem::mouseDoubleClickEvent(QGraphicsSceneMouseEvent *event)