digiKam
|
Public Slots | |
void | hidePopup () override |
void | setParentTag (TAlbum *const album) |
virtual void | updateText () |
Signals | |
void | taggingActionActivated (const TaggingAction &action) |
void | taggingActionSelected (const TaggingAction &action) |
Protected Slots | |
void | slotLineEditActionActivated (const TaggingAction &action) |
void | slotLineEditActionSelected (const TaggingAction &action) |
void | slotViewIndexActivated (const QModelIndex &) |
Protected Member Functions | |
bool | eventFilter (QObject *object, QEvent *event) override |
virtual void | installLineEdit () |
void | installView (QAbstractItemView *view=nullptr) override |
void | sendViewportEventToView (QEvent *e) override |
Protected Attributes | |
QLineEdit * | m_comboLineEdit |
QPersistentModelIndex | m_currentIndex |
AbstractAlbumTreeView * | m_treeView |
QAbstractItemView * | m_view |
|
explicit |
References Digikam::AbstractAlbumTreeViewSelectComboBox::m_treeView, Digikam::AlbumSelectComboBox::setCheckable(), Digikam::AlbumSelectComboBox::setCloseOnActivate(), Digikam::TreeViewLineEditComboBox::setLineEdit(), slotLineEditActionActivated(), slotLineEditActionSelected(), slotViewIndexActivated(), taggingActionActivated(), taggingActionSelected(), and text().
|
override |
|
inherited |
Enables a context menu which contains options to check or uncheck groups of albums, given you have a checkable model. Call this method after setModel().
References Digikam::AbstractAlbumTreeView::addContextMenuElement(), Digikam::AbstractAlbumTreeViewSelectComboBox::m_treeView, and Digikam::AbstractAlbumTreeView::setEnableContextMenu().
Referenced by Digikam::SearchFieldAlbum::setupValueWidgets().
|
inherited |
References Digikam::ModelIndexBasedComboBox::m_currentIndex.
Referenced by setCurrentTag().
TaggingAction Digikam::AddTagsComboBox::currentTaggingAction | ( | ) |
Returns the currently set tagging action. This is the last action emitted by either taggingActionActivated() or taggingActionSelected()
Referenced by Digikam::AssignNameWidget::slotConfirm(), and slotViewIndexActivated().
|
overrideprotected |
References Digikam::StayPoppedUpComboBox::eventFilter().
|
inherited |
Return the filter model in use.
Referenced by Digikam::AlbumSelectComboBox::setAlbumModels(), Digikam::AlbumTreeViewSelectComboBox::setAlbumModels(), setAlbumModels(), and Digikam::TagTreeViewSelectComboBox::setAlbumModels().
|
overrideslotinherited |
|
protectedvirtualinherited |
Sets a line edit. Called by installView(). The default implementation is described above. An empty implementation will keep the default QComboBox line edit.
References Digikam::TreeViewLineEditComboBox::m_comboLineEdit, and Digikam::TreeViewLineEditComboBox::setLineEdit().
Referenced by Digikam::TreeViewLineEditComboBox::installView().
|
overrideprotectedvirtualinherited |
Replace the standard combo box list view with a QTreeView. Call this after installing an appropriate model.
Reimplemented from Digikam::AlbumSelectComboBox.
References Digikam::AlbumSelectComboBox::installView(), Digikam::AbstractAlbumTreeViewSelectComboBox::m_treeView, and Digikam::TreeViewComboBox::view().
|
inherited |
AddTagsLineEdit * Digikam::AddTagsComboBox::lineEdit | ( | ) | const |
Referenced by Digikam::FaceGroup::focusRandomFace(), and Digikam::AssignNameWidget::showEvent().
|
inherited |
Returns the source model. Retrieve selection information from here.
Referenced by Digikam::AlbumSelectComboBox::setAlbumModels(), Digikam::AlbumTreeViewSelectComboBox::setAlbumModels(), setAlbumModels(), Digikam::TagTreeViewSelectComboBox::setAlbumModels(), and Digikam::SearchFieldAlbum::setupValueWidgets().
|
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::AbstractAlbumTreeViewSelectComboBox::m_treeView, and Digikam::AbstractAlbumTreeView::viewportEvent().
|
inherited |
References Digikam::AlbumSelectComboBox::filterModel(), Digikam::AlbumSelectComboBox::installView(), Digikam::AlbumSelectComboBox::model(), and Digikam::AlbumSelectComboBox::updateText().
Referenced by Digikam::AlbumTreeViewSelectComboBox::setAlbumModels(), Digikam::TagTreeViewSelectComboBox::setAlbumModels(), Digikam::AlbumSelectComboBox::setDefaultAlbumModel(), and Digikam::AlbumSelectComboBox::setDefaultTagModel().
void Digikam::AddTagsComboBox::setAlbumModels | ( | TagModel *const | model, |
TagPropertiesFilterModel *const | filteredModel = nullptr , |
||
CheckableAlbumFilterModel *const | filterModel = nullptr |
||
) |
You must call this after construction. If filtered/filterModel is 0, a default one is constructed
References Digikam::AlbumSelectComboBox::filterModel(), Digikam::AlbumSelectComboBox::model(), and Digikam::TagTreeViewSelectComboBox::setAlbumModels().
Referenced by Digikam::AssignNameWidget::setAlbumModels().
|
inherited |
Enable checkboxes next to the items. Default: true
Referenced by AddTagsComboBox().
|
inherited |
Enable closing when an item was activated (clicked). Default: false.
Referenced by AddTagsComboBox().
|
inherited |
References Digikam::ModelIndexBasedComboBox::m_currentIndex.
Referenced by Digikam::RatingComboBox::ratingWidgetChanged(), and Digikam::RatingComboBox::setRatingValue().
void Digikam::AddTagsComboBox::setCurrentTag | ( | TAlbum *const | album | ) |
Sets the currently selected tag
References Digikam::ModelIndexBasedComboBox::currentIndex(), Digikam::TagTreeView::setCurrentAlbums(), slotViewIndexActivated(), and Digikam::TagTreeViewSelectComboBox::view().
|
inherited |
Once after creation, call one of these three methods. Use the first one if you want a standard combo box for PAlbums and the second one for tags, while the third allows you to provide custom source and filter models. The first two also set a default noSelectionText. Customize afterwards if required.
References Digikam::AbstractAlbumModel::IgnoreRootAlbum, Digikam::AlbumSelectComboBox::setAlbumModels(), and Digikam::TreeViewComboBox::view().
|
inherited |
References Digikam::TagTreeViewSelectComboBox::setAlbumModels().
Referenced by Digikam::SearchFieldAlbum::setupValueWidgets().
|
inherited |
|
inherited |
References Digikam::TreeViewLineEditComboBox::m_comboLineEdit.
Referenced by AddTagsComboBox(), and Digikam::TreeViewLineEditComboBox::installLineEdit().
|
inherited |
Set the text of the line edit (the text that is visible if the popup is not opened). Applicable only for default installLineEdit() implementation.
References Digikam::TreeViewLineEditComboBox::m_comboLineEdit.
Referenced by Digikam::AlbumSelectComboBox::updateText().
|
inherited |
Sets the text that is used to describe the state when no album is selected. This may be something like "Any album" or "No tag selected". Depends on the default line edit implementation of TreeViewLineEditComboBox.
References Digikam::AlbumSelectComboBox::updateText().
Referenced by Digikam::SearchFieldAlbum::setupValueWidgets().
|
slot |
Set a parent tag for suggesting a parent tag for a new tag, and a default action.
Referenced by Digikam::AssignNameWidget::setParentTag().
void Digikam::AddTagsComboBox::setPlaceholderText | ( | const QString & | message | ) |
|
inherited |
If the box is checkable, enable showing a resume a la "3 Albums checked" in the combo box text. Default: True
References Digikam::AlbumSelectComboBox::updateText().
void Digikam::AddTagsComboBox::setText | ( | const QString & | text | ) |
References text().
|
inherited |
Set a tree view created by you instead of creating a default view (in the subclasses). Only takes effect before calling setModel.
References Digikam::AbstractAlbumTreeViewSelectComboBox::m_treeView.
|
overrideinherited |
References Digikam::ModelIndexBasedComboBox::m_currentIndex.
Referenced by Digikam::ChoiceSearchComboBox::labelClicked().
|
protectedslot |
References taggingActionActivated().
Referenced by AddTagsComboBox().
|
protectedslot |
References taggingActionSelected().
Referenced by AddTagsComboBox().
|
protectedslot |
|
signal |
Emitted when the user activates an action (typically, by pressing return)
Referenced by AddTagsComboBox(), and slotLineEditActionActivated().
|
signal |
Emitted when an action is selected, but not explicitly activated. (typically by selecting an item in the tree view
Referenced by AddTagsComboBox(), slotLineEditActionSelected(), and slotViewIndexActivated().
QString Digikam::AddTagsComboBox::text | ( | ) | const |
Referenced by AddTagsComboBox(), and setText().
|
virtualslotinherited |
Updates the text describing the selection ("3 Albums selected"). Can be overridden to customize the default text.
References Digikam::TreeViewLineEditComboBox::setLineEditText(), and Digikam::Album::TAG.
Referenced by Digikam::AlbumSelectComboBox::AlbumSelectComboBox(), Digikam::AlbumSelectComboBox::hidePopup(), Digikam::AlbumSelectComboBox::setAlbumModels(), Digikam::AlbumSelectComboBox::setNoSelectionText(), and Digikam::AlbumSelectComboBox::setShowCheckStateSummary().
|
inherited |
|
protectedinherited |
|
protectedinherited |
|
protectedinherited |
Referenced by Digikam::AbstractAlbumTreeViewSelectComboBox::addCheckUncheckContextMenuActions(), AddTagsComboBox(), Digikam::AbstractAlbumTreeViewSelectComboBox::installView(), Digikam::AbstractAlbumTreeViewSelectComboBox::sendViewportEventToView(), Digikam::AlbumTreeViewSelectComboBox::setAlbumModels(), Digikam::TagTreeViewSelectComboBox::setAlbumModels(), Digikam::AbstractAlbumTreeViewSelectComboBox::setTreeView(), Digikam::AlbumTreeViewSelectComboBox::view(), and Digikam::TagTreeViewSelectComboBox::view().
|
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().