IndexedQCheckBox Class Reference

A check box with an index. More...

#include <RobotComponents/gui-plugins/MotionPlanning/QtWidgets/IndexedQCheckBox.h>

+ Inheritance diagram for IndexedQCheckBox:

Signals

void stateChangedIndex (int index, Qt::CheckState state)
 Emitted when the check state changes. More...
 

Public Member Functions

 IndexedQCheckBox (int index, const QString &text, QWidget *parent=nullptr)
 ctor. More...
 
 IndexedQCheckBox (int index, QWidget *parent=nullptr)
 ctor. More...
 

Detailed Description

A check box with an index.

The index and check state is emitted when its check state changes.

Definition at line 33 of file IndexedQCheckBox.h.

Constructor & Destructor Documentation

◆ IndexedQCheckBox() [1/2]

IndexedQCheckBox ( int  index,
QWidget *  parent = nullptr 
)
inline

ctor.

Parameters
indexThe index to emit,
parentThe widget's parent.

Definition at line 42 of file IndexedQCheckBox.h.

◆ IndexedQCheckBox() [2/2]

IndexedQCheckBox ( int  index,
const QString &  text,
QWidget *  parent = nullptr 
)
inline

ctor.

Parameters
indexThe index to emit,
Thecheckboxes' label.
parentThe widget's parent.

Definition at line 54 of file IndexedQCheckBox.h.

Member Function Documentation

◆ stateChangedIndex

void stateChangedIndex ( int  index,
Qt::CheckState  state 
)
signal

Emitted when the check state changes.

Parameters
indexThe index.
stateThe check state.

The documentation for this class was generated from the following file: