◆ StayPoppedUpComboBox()
Digikam::StayPoppedUpComboBox::StayPoppedUpComboBox |
( |
QWidget *const |
parent = nullptr | ) |
|
|
explicit |
This class provides an abstract QComboBox with a custom view (which is created by implementing subclasses) instead of the usual QListView. The Pop-up of the combo box will stay open after selecting an item; it will be closed by clicking outside, but not inside the widget. You need three steps: Construct the object, call setModel() with an appropriate QAbstractItemModel, then call installView() to replace the standard combo box view with a view.
References m_view.
◆ currentIndex()
QModelIndex Digikam::ModelIndexBasedComboBox::currentIndex |
( |
| ) |
const |
|
inherited |
◆ eventFilter()
bool Digikam::StayPoppedUpComboBox::eventFilter |
( |
QObject * |
watched, |
|
|
QEvent * |
event |
|
) |
| |
|
overrideprotected |
◆ hidePopup()
void Digikam::ModelIndexBasedComboBox::hidePopup |
( |
| ) |
|
|
overrideinherited |
◆ installView()
void Digikam::StayPoppedUpComboBox::installView |
( |
QAbstractItemView * |
view | ) |
|
|
protected |
◆ sendViewportEventToView()
virtual void Digikam::StayPoppedUpComboBox::sendViewportEventToView |
( |
QEvent * |
e | ) |
|
|
protectedpure virtual |
◆ setCurrentIndex()
void Digikam::ModelIndexBasedComboBox::setCurrentIndex |
( |
const QModelIndex & |
index | ) |
|
|
inherited |
◆ showPopup()
void Digikam::ModelIndexBasedComboBox::showPopup |
( |
| ) |
|
|
overrideinherited |
◆ m_currentIndex
QPersistentModelIndex Digikam::ModelIndexBasedComboBox::m_currentIndex |
|
protectedinherited |
◆ m_view
QAbstractItemView* Digikam::StayPoppedUpComboBox::m_view |
|
protected |
The documentation for this class was generated from the following files: