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

@ -4,6 +4,7 @@
#include "arrowtarget.h"
class CardInfo;
class CardInfoWidget;
class Player;
class QTimer;
@ -14,6 +15,7 @@ class AbstractCardItem : public QObject, public ArrowTarget {
Q_OBJECT
protected:
CardInfo *info;
CardInfoWidget *infoWidget;
QString name;
bool tapped;
int tapAngle;
@ -42,6 +44,7 @@ public:
void processHoverEvent();
protected:
void mousePressEvent(QGraphicsSceneMouseEvent *event);
void mouseReleaseEvent(QGraphicsSceneMouseEvent *event);
void hoverEnterEvent(QGraphicsSceneHoverEvent *event);
QVariant itemChange(QGraphicsItem::GraphicsItemChange change, const QVariant &value);
};