◆ ListViewComboBox()
Digikam::ListViewComboBox::ListViewComboBox |
( |
QWidget * |
parent = nullptr | ) |
|
|
explicit |
This class provides an implementation of a StayPoppedUpComboBox with a QListView. This is the standard view of a QComboBox, but in conjunction with StayPoppedUpComboBox some extra steps are needed. You need three steps: Construct the object, call setModel() with an appropriate QAbstractItemModel, then call installView().
◆ currentIndex()
QModelIndex Digikam::ModelIndexBasedComboBox::currentIndex |
( |
| ) |
const |
|
inherited |
◆ eventFilter()
bool Digikam::StayPoppedUpComboBox::eventFilter |
( |
QObject * |
watched, |
|
|
QEvent * |
event |
|
) |
| |
|
overrideprotectedinherited |
◆ hidePopup()
void Digikam::ModelIndexBasedComboBox::hidePopup |
( |
| ) |
|
|
overrideinherited |
◆ installView()
void Digikam::ListViewComboBox::installView |
( |
QAbstractItemView * |
view = nullptr | ) |
|
|
virtual |
◆ sendViewportEventToView()
void Digikam::ListViewComboBox::sendViewportEventToView |
( |
QEvent * |
e | ) |
|
|
overrideprotectedvirtual |
Implement in subclass: Send the given event to the viewportEvent() method of m_view. This method is protected for a usual QAbstractItemView. You can override, pass a view, and call parent implementation. The existing view will be used. You must then also reimplement sendViewportEventToView.
Implements Digikam::StayPoppedUpComboBox.
References Digikam::StayPoppedUpComboBox::m_view.
◆ setCurrentIndex()
void Digikam::ModelIndexBasedComboBox::setCurrentIndex |
( |
const QModelIndex & |
index | ) |
|
|
inherited |
◆ showPopup()
void Digikam::ModelIndexBasedComboBox::showPopup |
( |
| ) |
|
|
overrideinherited |
◆ view()
QListView * Digikam::ListViewComboBox::view |
( |
| ) |
const |
◆ m_currentIndex
QPersistentModelIndex Digikam::ModelIndexBasedComboBox::m_currentIndex |
|
protectedinherited |
◆ m_view
QAbstractItemView* Digikam::StayPoppedUpComboBox::m_view |
|
protectedinherited |
The documentation for this class was generated from the following files: