◆ TreeViewComboBox()
Digikam::TreeViewComboBox::TreeViewComboBox |
( |
QWidget * |
parent = nullptr | ) |
|
|
explicit |
This class provides a QComboBox with a QTreeView instead of the usual QListView. 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 QTreeView.
◆ 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::TreeViewComboBox::installView |
( |
QAbstractItemView * |
view = nullptr | ) |
|
|
virtual |
◆ sendViewportEventToView()
void Digikam::TreeViewComboBox::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()
QTreeView * Digikam::TreeViewComboBox::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: