![]() |
LeechCraft
0.6.70-13729-g7046a9d2a7
Modular cross-platform feature rich live environment.
|
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(). More... | |
Public Member Functions | |
| TagsCompletionModel (QObject *parent=0) | |
| Creates the model with the given parent. More... | |
| void | UpdateTags (const QStringList &newTags) |
| Adds new tags to the list of tags. More... | |
A QStringListModel providing additional methods for tags.
This model is basically a QStringListModel with additional methods for easy working with tags.
Definition at line 45 of file tagscompletionmodel.h.
| LC::Util::TagsCompletionModel::TagsCompletionModel | ( | QObject * | parent = 0 | ) |
Creates the model with the given parent.
| [in] | parent | The parent object of this model. |
Definition at line 38 of file tagscompletionmodel.cpp.
|
signal |
Emitted when tags are updated via UpdateTags().
| [in] | allTags | All tags in this model. |
Referenced by UpdateTags().
Here is the caller graph for this function:| 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.
| [in] | newTags | The new tags to append to this model. |
Definition at line 43 of file tagscompletionmodel.cpp.
References tagsUpdated().