mirror of
https://github.com/Cockatrice/Cockatrice.git
synced 2026-07-04 04:23:55 -07:00
Added MTGO-like card info widget, made original info widget hideable
This commit is contained in:
parent
d6c00d6529
commit
a215b3503a
7 changed files with 77 additions and 24 deletions
|
|
@ -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);
|
||||
};
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue