LeechCraft  0.6.70-15082-g543737046d
Modular cross-platform feature rich live environment.
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(). More...
 

Public Member Functions

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

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 28 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.

◆ 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 20 of file tagscompletionmodel.cpp.


The documentation for this class was generated from the following files: