![]() |
digiKam Developer Documentation
Professional Photo Management with the Power of Open Source
|
Signals | |
void | checkStateChanged () |
Public Member Functions | |
ChoiceSearchComboBox (QWidget *const parent=nullptr) | |
A combo box for entering a choice of values. | |
DSqueezedClickLabel * | label () const |
ChoiceSearchModel * | model () const |
void | setLabelText (const QString &text) |
Updates the text on the line edit area. | |
void | setSearchModel (ChoiceSearchModel *model) |
Sets the model and initializes the widget. | |
![]() | |
ListViewComboBox (QWidget *parent=nullptr) | |
This class provides an implementation of a StayPoppedUpComboBox with a QListView. | |
QListView * | view () const |
Returns the QTreeView of this class. | |
![]() | |
StayPoppedUpComboBox (QWidget *const parent=nullptr) | |
This class provides an abstract QComboBox with a custom view (which is created by implementing subclasses) instead of the usual QListView. | |
![]() | |
ModelIndexBasedComboBox (QWidget *const parent=nullptr) | |
QComboBox has a current index based on a single integer. | |
QModelIndex | currentIndex () const |
void | hidePopup () override |
void | setCurrentIndex (const QModelIndex &index) |
void | showPopup () override |
Protected Slots | |
void | labelClicked () |
Protected Member Functions | |
void | installView (QAbstractItemView *view=nullptr) override |
Replace the standard combo box list view with a QTreeView. | |
![]() | |
void | sendViewportEventToView (QEvent *e) override |
Implement in subclass: Send the given event to the viewportEvent() method of m_view. | |
![]() | |
bool | eventFilter (QObject *watched, QEvent *event) override |
void | installView (QAbstractItemView *view) |
Replace the standard combo box list view with the given view. | |
Protected Attributes | |
DSqueezedClickLabel * | m_label = nullptr |
![]() | |
QAbstractItemView * | m_view = nullptr |
![]() | |
QPersistentModelIndex | m_currentIndex |
|
explicit |
Operates on a ChoiceSearchModel. After constructing the object, call setModel with your model.
|
overrideprotectedvirtual |
Call this after installing an appropriate model.
Reimplemented from Digikam::ListViewComboBox.
void Digikam::ChoiceSearchComboBox::setSearchModel | ( | ChoiceSearchModel * | model | ) |
Can only be called once for a widget.