mirror of
https://github.com/Cockatrice/Cockatrice.git
synced 2026-07-15 23:12:14 -07:00
Lint.
This commit is contained in:
parent
e33ecc8230
commit
286feb92b3
1 changed files with 6 additions and 3 deletions
|
|
@ -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
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue