Medical Imaging Interaction Toolkit  2023.12.00
Medical Imaging Interaction Toolkit
QmitkComboBoxStepThrough Class Reference

Extension of QComboBox which offers stepping through the values. More...

#include <QmitkComboBoxStepThrough.h>

Inheritance diagram for QmitkComboBoxStepThrough:
Collaboration diagram for QmitkComboBoxStepThrough:

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)
 

Detailed Description

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.

Constructor & Destructor Documentation

◆ QmitkComboBoxStepThrough()

QmitkComboBoxStepThrough::QmitkComboBoxStepThrough ( QWidget *  parent = nullptr)

◆ ~QmitkComboBoxStepThrough()

QmitkComboBoxStepThrough::~QmitkComboBoxStepThrough ( )
override

Member Function Documentation

◆ addItem() [1/2]

void QmitkComboBoxStepThrough::addItem ( const QIcon &  icon,
const QString &  text,
const QVariant &  userData = QVariant() 
)

◆ addItem() [2/2]

void QmitkComboBoxStepThrough::addItem ( const QString &  text,
const QVariant &  userData = QVariant() 
)

◆ addItems()

void QmitkComboBoxStepThrough::addItems ( const QStringList &  texts)

◆ insertItem() [1/2]

void QmitkComboBoxStepThrough::insertItem ( int  index,
const QIcon &  icon,
const QString &  text,
const QVariant &  userData = QVariant() 
)

◆ insertItem() [2/2]

void QmitkComboBoxStepThrough::insertItem ( int  index,
const QString &  text,
const QVariant &  userData = QVariant() 
)

◆ insertItems()

void QmitkComboBoxStepThrough::insertItems ( int  index,
const QStringList &  list 
)

◆ OnSetNextIndex

void QmitkComboBoxStepThrough::OnSetNextIndex ( )
slot

Set index of the combo box to next index. If current index is already the last index, nothing is done.

◆ OnSetPreviousIndex

void QmitkComboBoxStepThrough::OnSetPreviousIndex ( )
slot

Set index of the combo box to previous index. If current index is already the first index, nothing is done.

◆ SignalReachedBegin

void QmitkComboBoxStepThrough::SignalReachedBegin ( bool  )
signal

True if the begin of the available values is reached. False if index was the first possible index and is now another index.

◆ SignalReachedEnd

void QmitkComboBoxStepThrough::SignalReachedEnd ( bool  )
signal

True if the end of the available values is reached. False if index was the last possible index and is now another index.


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