![]() |
Cockatrice 2026-10-19-Development-3.1.2-beta.2
A virtual tabletop for multiplayer card games
|
#include <phases_toolbar.h>
Signals | |
| void | clicked () |
Public Member Functions | |
| PhaseButton (const QString &_name, QGraphicsItem *parent=nullptr, QAction *_doubleClickAction=nullptr, bool _highlightable=true) | |
| QRectF | boundingRect () const override |
| void | setWidth (double _width) |
| void | setActive (bool _active) |
| bool | getActive () const |
| void | triggerDoubleClickAction () |
Protected Member Functions | |
| void | paint (QPainter *painter, const QStyleOptionGraphicsItem *, QWidget *) override |
| void | mousePressEvent (QGraphicsSceneMouseEvent *event) override |
| void | mouseDoubleClickEvent (QGraphicsSceneMouseEvent *event) override |
Private Slots | |
| void | updateAnimation () |
Private Attributes | |
| QString | name |
| bool | active |
| bool | highlightable |
| int | activeAnimationCounter |
| QTimer * | activeAnimationTimer |
| QAction * | doubleClickAction |
| double | width |
|
explicit |
|
nodiscardoverride |
|
signal |
|
inlinenodiscard |
|
overrideprotected |
|
overrideprotected |
|
overrideprotected |
| void PhaseButton::setActive | ( | bool | _active | ) |
| void PhaseButton::setWidth | ( | double | _width | ) |
| void PhaseButton::triggerDoubleClickAction | ( | ) |
|
privateslot |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |