MITK-IGT
IGT Extension of MITK
|
Extension of QComboBox which offers stepping through the values. More...
#include <QmitkComboBoxStepThrough.h>
Public Slots | |
void | OnSetPreviousIndex () |
void | OnSetNextIndex () |
Signals | |
void | SignalReachedEnd (bool) |
void | SignalReachedBegin (bool) |
Public Member Functions | |
QmitkComboBoxStepThrough (QWidget *parent=nullptr) | |
~QmitkComboBoxStepThrough () override | |
void | addItem (const QString &text, const QVariant &userData=QVariant()) |
void | addItem (const QIcon &icon, const QString &text, const QVariant &userData=QVariant()) |
void | addItems (const QStringList &texts) |
void | insertItem (int index, const QString &text, const QVariant &userData=QVariant()) |
void | insertItem (int index, const QIcon &icon, const QString &text, const QVariant &userData=QVariant()) |
void | insertItems (int index, const QStringList &list) |
Extension of QComboBox which offers stepping through the values.
Slots added for setting index to the next position and the previous position. Signals added for signaling if the begin or the end of the values is reached.
Definition at line 24 of file QmitkComboBoxStepThrough.h.
QmitkComboBoxStepThrough::QmitkComboBoxStepThrough | ( | QWidget * | parent = nullptr | ) |
Definition at line 15 of file QmitkComboBoxStepThrough.cpp.
|
override |
Definition at line 21 of file QmitkComboBoxStepThrough.cpp.
void QmitkComboBoxStepThrough::addItem | ( | const QIcon & | icon, |
const QString & | text, | ||
const QVariant & | userData = QVariant() ) |
Definition at line 83 of file QmitkComboBoxStepThrough.cpp.
void QmitkComboBoxStepThrough::addItem | ( | const QString & | text, |
const QVariant & | userData = QVariant() ) |
Definition at line 75 of file QmitkComboBoxStepThrough.cpp.
void QmitkComboBoxStepThrough::addItems | ( | const QStringList & | texts | ) |
Definition at line 91 of file QmitkComboBoxStepThrough.cpp.
void QmitkComboBoxStepThrough::insertItem | ( | int | index, |
const QIcon & | icon, | ||
const QString & | text, | ||
const QVariant & | userData = QVariant() ) |
Definition at line 107 of file QmitkComboBoxStepThrough.cpp.
void QmitkComboBoxStepThrough::insertItem | ( | int | index, |
const QString & | text, | ||
const QVariant & | userData = QVariant() ) |
Definition at line 99 of file QmitkComboBoxStepThrough.cpp.
void QmitkComboBoxStepThrough::insertItems | ( | int | index, |
const QStringList & | list ) |
Definition at line 115 of file QmitkComboBoxStepThrough.cpp.
|
slot |
Set index of the combo box to next index. If current index is already the last index, nothing is done.
Definition at line 36 of file QmitkComboBoxStepThrough.cpp.
|
slot |
Set index of the combo box to previous index. If current index is already the first index, nothing is done.
Definition at line 25 of file QmitkComboBoxStepThrough.cpp.
|
signal |
True if the begin of the available values is reached. False if index was the first possible index and is now another index.
|
signal |
True if the end of the available values is reached. False if index was the last possible index and is now another index.