diff options
Diffstat (limited to 'qt-ui/models.h')
-rw-r--r-- | qt-ui/models.h | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/qt-ui/models.h b/qt-ui/models.h index c4a3a077d..c54a765ab 100644 --- a/qt-ui/models.h +++ b/qt-ui/models.h @@ -417,4 +417,18 @@ private: QStringList languages; }; + +class TagFilterModel : public QStringListModel { + Q_OBJECT +public: + static TagFilterModel *instance(); + virtual QVariant data(const QModelIndex &index, int role = Qt::DisplayRole) const; + virtual bool setData(const QModelIndex &index, const QVariant &value, int role = Qt::EditRole); + virtual Qt::ItemFlags flags(const QModelIndex &index) const; +public slots: + void repopulate(); +private: + explicit TagFilterModel(QObject *parent = 0); + bool *checkState; +}; #endif // MODELS_H |