LeechCraft  0.6.70-13729-g7046a9d2a7
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

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

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 45 of file tagscompletionmodel.h.

Constructor & Destructor Documentation

◆ TagsCompletionModel()

LC::Util::TagsCompletionModel::TagsCompletionModel ( QObject *  parent = 0)

Creates the model with the given parent.

Parameters
[in]parentThe parent object of this model.

Definition at line 38 of file tagscompletionmodel.cpp.

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

References tagsUpdated().


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