digiKam
|
Signals | |
void | checkStateChanged () |
Public Member Functions | |
ChoiceSearchComboBox (QWidget *const parent=nullptr) | |
QModelIndex | currentIndex () const |
void | hidePopup () override |
DSqueezedClickLabel * | label () const |
ChoiceSearchModel * | model () const |
void | setCurrentIndex (const QModelIndex &index) |
void | setLabelText (const QString &text) |
void | setSearchModel (ChoiceSearchModel *model) |
void | showPopup () override |
QListView * | view () const |
Protected Slots | |
void | labelClicked () |
Protected Member Functions | |
bool | eventFilter (QObject *watched, QEvent *event) override |
void | installView (QAbstractItemView *view=nullptr) override |
void | sendViewportEventToView (QEvent *e) override |
Protected Attributes | |
QPersistentModelIndex | m_currentIndex |
DSqueezedClickLabel * | m_label |
QAbstractItemView * | m_view |
|
explicit |
A combo box for entering a choice of values. Operates on a ChoiceSearchModel. After constructing the object, call setModel with your model.
|
signal |
|
inherited |
References Digikam::ModelIndexBasedComboBox::m_currentIndex.
Referenced by Digikam::AddTagsComboBox::setCurrentTag().
|
overrideprotectedinherited |
References Digikam::StayPoppedUpComboBox::m_view, and Digikam::StayPoppedUpComboBox::sendViewportEventToView().
Referenced by Digikam::AddTagsComboBox::eventFilter().
|
overrideinherited |
References Digikam::ModelIndexBasedComboBox::m_currentIndex.
Referenced by Digikam::AlbumSelectComboBox::hidePopup().
|
overrideprotectedvirtual |
Replace the standard combo box list view with a QTreeView. Call this after installing an appropriate model.
Reimplemented from Digikam::ListViewComboBox.
References Digikam::ListViewComboBox::installView(), labelClicked(), m_label, Digikam::DAdjustableLabel::setElideMode(), Digikam::ProxyLineEdit::setWidget(), and Digikam::ListViewComboBox::view().
Referenced by setSearchModel().
DSqueezedClickLabel * Digikam::ChoiceSearchComboBox::label | ( | ) | const |
References m_label.
Referenced by Digikam::SearchFieldChoice::setupValueWidgets().
|
protectedslot |
References Digikam::ModelIndexBasedComboBox::showPopup().
Referenced by installView().
ChoiceSearchModel * Digikam::ChoiceSearchComboBox::model | ( | ) | const |
Referenced by setSearchModel().
|
overrideprotectedvirtualinherited |
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.
|
inherited |
References Digikam::ModelIndexBasedComboBox::m_currentIndex.
Referenced by Digikam::RatingComboBox::ratingWidgetChanged(), and Digikam::RatingComboBox::setRatingValue().
void Digikam::ChoiceSearchComboBox::setLabelText | ( | const QString & | text | ) |
Updates the text on the line edit area.
References m_label, and Digikam::DAdjustableLabel::setAdjustedText().
Referenced by Digikam::SearchFieldChoice::updateComboText().
void Digikam::ChoiceSearchComboBox::setSearchModel | ( | ChoiceSearchModel * | model | ) |
Sets the model and initializes the widget. Can only be called once for a widget.
References installView(), and model().
Referenced by Digikam::SearchFieldChoice::setupValueWidgets().
|
overrideinherited |
References Digikam::ModelIndexBasedComboBox::m_currentIndex.
Referenced by labelClicked().
|
inherited |
Returns the QTreeView of this class. Valid after installView() has been called.
References Digikam::StayPoppedUpComboBox::m_view.
Referenced by Digikam::ListViewComboBox::installView(), and installView().
|
protectedinherited |
|
protected |
Referenced by installView(), label(), and setLabelText().
|
protectedinherited |
Referenced by Digikam::StayPoppedUpComboBox::eventFilter(), Digikam::StayPoppedUpComboBox::installView(), Digikam::TreeViewComboBox::sendViewportEventToView(), Digikam::ListViewComboBox::sendViewportEventToView(), Digikam::StayPoppedUpComboBox::StayPoppedUpComboBox(), Digikam::TreeViewComboBox::view(), and Digikam::ListViewComboBox::view().