![]() |
Cockatrice 2026-10-19-Development-3.1.2-beta.2
A virtual tabletop for multiplayer card games
|
#include <deck_preview_tag_display_widget.h>
Signals | |
| void | tagClicked () |
| Emitted when a click toggles the chip's selection/exclusion state. | |
| void | tagClosed () |
| Emitted when the close button is clicked. | |
Public Member Functions | |
| DeckPreviewTagDisplayWidget (QWidget *parent=nullptr, const QString &tagName="") | |
| Constructor for DeckPreviewTagDisplayWidget. | |
| QSize | sizeHint () const override |
| QString | getTagName () const |
| TagState | getState () const |
| void | setState (const TagState newState) |
Protected Member Functions | |
| void | paintEvent (QPaintEvent *event) override |
| Custom paint event for drawing the widget. | |
| void | mousePressEvent (QMouseEvent *event) override |
| Custom mouse press event handler. | |
Private Attributes | |
| QLabel * | tagLabel |
| Label for displaying the tag name. | |
| QPushButton * | closeButton |
| Button to close/remove the tag. | |
| QString | tagName |
| The name of the tag. | |
| TagState | state |
| Indicates whether the tag is unselected, selected, or excluded. | |
|
explicit |
Constructor for DeckPreviewTagDisplayWidget.
| parent | The parent widget. |
| tagName | The name of the tag to display. |
|
inlinenodiscard |
|
inlinenodiscard |
|
overrideprotected |
Custom mouse press event handler.
| event | The mouse event. |
|
overrideprotected |
Custom paint event for drawing the widget.
| event | The paint event. |
|
inline |
|
nodiscardoverride |
|
signal |
Emitted when a click toggles the chip's selection/exclusion state.
Not emitted for clicks that leave the state unchanged. Connected handlers use this as the trigger to update filters built from selectedTags()/excludedTags().
|
signal |
Emitted when the close button is clicked.
|
private |
Button to close/remove the tag.
|
private |
Indicates whether the tag is unselected, selected, or excluded.
|
private |
Label for displaying the tag name.
|
private |
The name of the tag.