LeechCraft 0.6.70-17609-g3dde4097dd
Modular cross-platform feature rich live environment.
Loading...
Searching...
No Matches
LC::Util::TagsCompletionModel Class Reference

A QStringListModel providing additional methods for tags. More...

#include "tagscompletionmodel.h"

Inheritance diagram for LC::Util::TagsCompletionModel:
Collaboration diagram for LC::Util::TagsCompletionModel:

Signals

void tagsUpdated (const QStringList &allTags)
 Emitted when tags are updated via UpdateTags().

Public Member Functions

void UpdateTags (const QStringList &newTags)
 Adds new tags to the list of tags.

Detailed Description

A QStringListModel providing additional methods for tags.

This model is basically a QStringListModel with additional methods for easy working with tags.

Definition at line 22 of file tagscompletionmodel.h.

Member Function Documentation

◆ tagsUpdated

void LC::Util::TagsCompletionModel::tagsUpdated ( const QStringList & allTags)
signal

Emitted when tags are updated via UpdateTags().

Parameters
[in]allTagsAll tags in this model.

Referenced by UpdateTags().

Here is the caller graph for this function:

◆ UpdateTags()

void LC::Util::TagsCompletionModel::UpdateTags ( const QStringList & newTags)

Adds new tags to the list of tags.

This method adds the newTags to the already existing list of tags avoiding duplicates and emits the tagsUpdated() signal.

Parameters
[in]newTagsThe new tags to append to this model.

Definition at line 14 of file tagscompletionmodel.cpp.

References tagsUpdated().

Here is the call graph for this function:

The documentation for this class was generated from the following files:
  • /home/abuild/rpmbuild/BUILD/leechcraft-doc-0.6.70+git.17609.g3dde4097dd-build/leechcraft-0.6.70-17609-g3dde4097dd/src/util/tags/tagscompletionmodel.h
  • /home/abuild/rpmbuild/BUILD/leechcraft-doc-0.6.70+git.17609.g3dde4097dd-build/leechcraft-0.6.70-17609-g3dde4097dd/src/util/tags/tagscompletionmodel.cpp