Limo
A simple mod manager
Loading...
Searching...
No Matches
TagCheckBox Class Reference

When clicked: Emits a signal containing its own text as well as the new check state. More...

#include <tagcheckbox.h>

Inheritance diagram for TagCheckBox:
Collaboration diagram for TagCheckBox:

Signals

void tagBoxChecked (QString tag_name, int state)
 Signals check state has been chenged.
 

Public Member Functions

 TagCheckBox (const QString &tag_name, int num_mods)
 Constructor. Initializes the style sheet and sets this checkbox to a tristate box.
 

Static Public Attributes

static constexpr char style_sheet []
 The style sheet used for this checkbox.
 

Private Slots

void onChecked (int state)
 Connected to stateChanged. Emits tagBoxChecked with the display text and the check state as arguments.
 

Private Attributes

QString tag_name_
 Name of the displayed tag.
 

Detailed Description

When clicked: Emits a signal containing its own text as well as the new check state.

Constructor & Destructor Documentation

◆ TagCheckBox()

TagCheckBox::TagCheckBox ( const QString & tag_name,
int num_mods )

Constructor. Initializes the style sheet and sets this checkbox to a tristate box.

Parameters
textDisplay text for this checkbox.

Member Function Documentation

◆ onChecked

void TagCheckBox::onChecked ( int state)
privateslot

Connected to stateChanged. Emits tagBoxChecked with the display text and the check state as arguments.

Parameters
stateThe new check state.

◆ tagBoxChecked

void TagCheckBox::tagBoxChecked ( QString tag_name,
int state )
signal

Signals check state has been chenged.

Parameters
tag_nameDisplay text of this check box.
stateNew check state.

Member Data Documentation

◆ 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: