mirror of
https://github.com/Cockatrice/Cockatrice.git
synced 2026-07-12 13:33:58 -07:00
deck list editing in deck storage tab; mouse hover event for deck view
This commit is contained in:
parent
d23ece59ea
commit
e0c7df1694
20 changed files with 251 additions and 45 deletions
|
|
@ -23,6 +23,8 @@ protected:
|
|||
bool tapped;
|
||||
private slots:
|
||||
void pixmapUpdated();
|
||||
signals:
|
||||
void hovered(AbstractCardItem *card);
|
||||
public:
|
||||
enum { Type = typeCard };
|
||||
int type() const { return Type; }
|
||||
|
|
@ -35,8 +37,10 @@ public:
|
|||
void setName(const QString &_name = QString());
|
||||
bool getTapped() const { return tapped; }
|
||||
void setTapped(bool _tapped);
|
||||
void processHoverEvent();
|
||||
protected:
|
||||
void mousePressEvent(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