digiKam
|
Public Slots | |
void | setParentTag (Album *const album) |
Signals | |
void | taggingActionActivated (const TaggingAction &action) |
void | taggingActionFinished () |
void | taggingActionSelected (const TaggingAction &action) |
Public Member Functions | |
AddTagsLineEdit (QWidget *const parent=nullptr) | |
TaggingAction | currentTaggingAction () const |
void | setAlbumModels (TagModel *const model, TagPropertiesFilterModel *const filteredModel, AlbumFilterModel *const filterModel) |
void | setAllowExceedBound (bool value) |
void | setCurrentTag (TAlbum *const tag) |
void | setCurrentTaggingAction (const TaggingAction &action) |
void | setFilterModel (AlbumFilterModel *const model) |
void | setSupportingTagModel (TagModel *const model) |
void | setTagTreeView (TagTreeView *const treeView) |
~AddTagsLineEdit () override | |
Protected Slots | |
void | completerActivated (const TaggingAction &action) |
void | completerHighlighted (const TaggingAction &action) |
void | slotEditingFinished () |
void | slotReturnPressed () |
void | slotTextEdited (const QString &text) |
|
explicit |
|
override |
|
protectedslot |
References setCurrentTaggingAction(), and taggingActionActivated().
|
protectedslot |
References setCurrentTaggingAction().
TaggingAction Digikam::AddTagsLineEdit::currentTaggingAction | ( | ) | const |
References Digikam::TaggingActionFactory::defaultTaggingAction().
Referenced by Digikam::AssignNameWidget::slotConfirm(), and slotReturnPressed().
void Digikam::AddTagsLineEdit::setAlbumModels | ( | TagModel *const | model, |
TagPropertiesFilterModel *const | filteredModel, | ||
AlbumFilterModel *const | filterModel | ||
) |
Convenience: Will call setSupportingTagModel() and setFilterModel()
References setFilterModel(), and setSupportingTagModel().
Referenced by Digikam::AssignNameWidget::setAlbumModels().
void Digikam::AddTagsLineEdit::setAllowExceedBound | ( | bool | value | ) |
References value.
void Digikam::AddTagsLineEdit::setCurrentTag | ( | TAlbum *const | tag | ) |
Adjusts the current default tagging action to assign the given tag
References Digikam::Album::id(), setCurrentTaggingAction(), and Digikam::Album::title().
void Digikam::AddTagsLineEdit::setCurrentTaggingAction | ( | const TaggingAction & | action | ) |
References taggingActionSelected().
Referenced by completerActivated(), completerHighlighted(), and setCurrentTag().
void Digikam::AddTagsLineEdit::setFilterModel | ( | AlbumFilterModel *const | model | ) |
Set a tag filter model. Completion suggestions will be limited to tags contained in the filter model.
Referenced by setAlbumModels().
|
slot |
Set a parent tag for suggesting a parent tag for a new tag, and a default action. If you set a tag tree view, this is taken care for automatically.
References Digikam::Album::id().
Referenced by Digikam::AssignNameWidget::setParentTag(), and setTagTreeView().
void Digikam::AddTagsLineEdit::setSupportingTagModel | ( | TagModel *const | model | ) |
Optional: set a model for additional information, like tag icons
Referenced by Digikam::TagsLineEditOverlay::createWidget(), and setAlbumModels().
void Digikam::AddTagsLineEdit::setTagTreeView | ( | TagTreeView *const | treeView | ) |
Reads a tag treeview and takes the currently selected tag into account when suggesting a parent tag for a new tag, and a default action.
References Digikam::AbstractAlbumTreeView::currentAlbumChanged(), and setParentTag().
|
protectedslot |
Referenced by AddTagsLineEdit().
|
protectedslot |
Tagging action is used by facemanagement and assignwidget
References currentTaggingAction(), taggingActionActivated(), and taggingActionFinished().
Referenced by AddTagsLineEdit().
|
protectedslot |
References Digikam::TaggingActionFactory::defaultTaggingAction(), and taggingActionSelected().
Referenced by AddTagsLineEdit().
|
signal |
Emitted when the user activates an action (typically, by pressing return)
Referenced by completerActivated(), and slotReturnPressed().
|
signal |
Referenced by slotReturnPressed().
|
signal |
Emitted when an action is selected. This already happens if anything is typed.
Referenced by setCurrentTaggingAction(), and slotTextEdited().