Medical Imaging Interaction Toolkit
2016.11.0
Medical Imaging Interaction Toolkit
|
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 () | |
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 28 of file QmitkComboBoxStepThrough.h.
QmitkComboBoxStepThrough::QmitkComboBoxStepThrough | ( | QWidget * | parent = nullptr | ) |
Definition at line 19 of file QmitkComboBoxStepThrough.cpp.
QmitkComboBoxStepThrough::~QmitkComboBoxStepThrough | ( | ) |
Definition at line 25 of file QmitkComboBoxStepThrough.cpp.
void QmitkComboBoxStepThrough::addItem | ( | const QString & | text, |
const QVariant & | userData = QVariant() |
||
) |
Definition at line 79 of file QmitkComboBoxStepThrough.cpp.
void QmitkComboBoxStepThrough::addItem | ( | const QIcon & | icon, |
const QString & | text, | ||
const QVariant & | userData = QVariant() |
||
) |
Definition at line 87 of file QmitkComboBoxStepThrough.cpp.
void QmitkComboBoxStepThrough::addItems | ( | const QStringList & | texts | ) |
Definition at line 95 of file QmitkComboBoxStepThrough.cpp.
void QmitkComboBoxStepThrough::insertItem | ( | int | index, |
const QString & | text, | ||
const QVariant & | userData = QVariant() |
||
) |
Definition at line 103 of file QmitkComboBoxStepThrough.cpp.
void QmitkComboBoxStepThrough::insertItem | ( | int | index, |
const QIcon & | icon, | ||
const QString & | text, | ||
const QVariant & | userData = QVariant() |
||
) |
Definition at line 111 of file QmitkComboBoxStepThrough.cpp.
void QmitkComboBoxStepThrough::insertItems | ( | int | index, |
const QStringList & | list | ||
) |
Definition at line 119 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 40 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 29 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.