When clicked: Emits a signal containing its own text as well as the new check state.
More...
#include <tagcheckbox.h>
|
void | tagBoxChecked (QString tag_name, int state) |
| Signals check state has been chenged.
|
|
|
| TagCheckBox (const QString &tag_name, int num_mods) |
| Constructor. Initializes the style sheet and sets this checkbox to a tristate box.
|
|
|
static constexpr char | style_sheet [] |
| The style sheet used for this checkbox.
|
|
|
void | onChecked (int state) |
| Connected to stateChanged. Emits tagBoxChecked with the display text and the check state as arguments.
|
|
|
QString | tag_name_ |
| Name of the displayed tag.
|
|
When clicked: Emits a signal containing its own text as well as the new check state.
◆ TagCheckBox()
TagCheckBox::TagCheckBox |
( |
const QString & | tag_name, |
|
|
int | num_mods ) |
Constructor. Initializes the style sheet and sets this checkbox to a tristate box.
- Parameters
-
text | Display text for this checkbox. |
◆ onChecked
void TagCheckBox::onChecked |
( |
int | state | ) |
|
|
privateslot |
Connected to stateChanged. Emits tagBoxChecked with the display text and the check state as arguments.
- Parameters
-
state | The new check state. |
◆ tagBoxChecked
void TagCheckBox::tagBoxChecked |
( |
QString | tag_name, |
|
|
int | state ) |
|
signal |
Signals check state has been chenged.
- Parameters
-
tag_name | Display text of this check box. |
state | New check state. |
◆ style_sheet
char TagCheckBox::style_sheet[] |
|
staticconstexpr |
Initial value:=
"QCheckBox::indicator:indeterminate {"
"image: url(:/filter_accept.svg);"
"width:16px;"
"height:16px;"
"margin-left: 2;"
"margin-right: 2;"
"spacing: 5;"
"}"
"QCheckBox::indicator:checked {"
"image: url(:/filter_reject.svg);"
"width:16px;"
"height:16px;"
"margin-left: 2;"
"margin-right: 2;"
"spacing: 5;"
"}"
The style sheet used for this checkbox.
The documentation for this class was generated from the following files: