digiKam
Digikam::ModelIndexBasedComboBox Class Reference
+ Inheritance diagram for Digikam::ModelIndexBasedComboBox:

Public Member Functions

QModelIndex currentIndex () const
 
void hidePopup () override
 
 ModelIndexBasedComboBox (QWidget *const parent=nullptr)
 
void setCurrentIndex (const QModelIndex &index)
 
void showPopup () override
 

Protected Attributes

QPersistentModelIndex m_currentIndex
 

Constructor & Destructor Documentation

◆ ModelIndexBasedComboBox()

Digikam::ModelIndexBasedComboBox::ModelIndexBasedComboBox ( QWidget *const  parent = nullptr)
explicit

QComboBox has a current index based on a single integer. This is not sufficient for more complex models. This class is a combo box that stores a current index based on QModelIndex.

Member Function Documentation

◆ currentIndex()

QModelIndex Digikam::ModelIndexBasedComboBox::currentIndex ( ) const

◆ hidePopup()

void Digikam::ModelIndexBasedComboBox::hidePopup ( )
override

◆ setCurrentIndex()

void Digikam::ModelIndexBasedComboBox::setCurrentIndex ( const QModelIndex &  index)

◆ showPopup()

void Digikam::ModelIndexBasedComboBox::showPopup ( )
override

Member Data Documentation

◆ m_currentIndex

QPersistentModelIndex Digikam::ModelIndexBasedComboBox::m_currentIndex
protected

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