This commit is contained in:
Lukas Brübach 2025-05-06 07:53:45 +02:00
parent e33ecc8230
commit 286feb92b3

View file

@ -6,7 +6,8 @@
#include <QString> #include <QString>
#include <QWidget> #include <QWidget>
enum class TagState { enum class TagState
{
NotSelected, NotSelected,
Selected, Selected,
Excluded Excluded
@ -28,7 +29,9 @@ public:
{ {
return tagName; return tagName;
} }
TagState getState() const { return state; } TagState getState() const {
return state;
}
void setState(const TagState newState) void setState(const TagState newState)
{ {
@ -64,7 +67,7 @@ private:
QLabel *tagLabel; ///< Label for displaying the tag name. QLabel *tagLabel; ///< Label for displaying the tag name.
QPushButton *closeButton; ///< Button to close/remove the tag. QPushButton *closeButton; ///< Button to close/remove the tag.
QString tagName; ///< The name of the tag. QString tagName; ///< The name of the tag.
TagState state; ///< Indicates whether the tag is unselected, selected, or excluded. TagState state; ///< Indicates whether the tag is unselected, selected, or excluded.
}; };
#endif // DECK_PREVIEW_TAG_DISPLAY_WIDGET_H #endif // DECK_PREVIEW_TAG_DISPLAY_WIDGET_H