diff options
author | Arno <am@disconnect.de> | 2011-05-14 13:26:41 +0200 |
---|---|---|
committer | Arno <am@disconnect.de> | 2011-05-14 13:26:41 +0200 |
commit | 3a70006747322708b81b91f52b447abb33d91df0 (patch) | |
tree | 1a8b53c7990bf2de08f3b2dc36de9a62fda3bc00 /seriestreemodel.h | |
parent | a6a1c319ee5a77cc8341eaeccc72da35cbcf17c5 (diff) | |
download | SheMov-3a70006747322708b81b91f52b447abb33d91df0.tar.gz SheMov-3a70006747322708b81b91f52b447abb33d91df0.tar.bz2 SheMov-3a70006747322708b81b91f52b447abb33d91df0.zip |
Use new field IsLocal in SeriesTreeModel
Use field IsLocal in SeriesTreeModel when filtering local or
archived files.
Diffstat (limited to 'seriestreemodel.h')
-rw-r--r-- | seriestreemodel.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/seriestreemodel.h b/seriestreemodel.h index 348ff2c..aa40ce3 100644 --- a/seriestreemodel.h +++ b/seriestreemodel.h @@ -25,6 +25,7 @@ class SeriesTreeModel : public SmTreeModel { enum Types { Series, Part, NewSeries }; enum QueryType { NumericQuery, TextQuery }; enum { NumFields = 8 }; + enum RowFilter { All = 0, Archived = 1, Local = 2 }; explicit SeriesTreeModel(QStringList &headers, QObject *parent = 0); ~SeriesTreeModel(); @@ -33,6 +34,8 @@ class SeriesTreeModel : public SmTreeModel { QVariant data(const QModelIndex &index, int role) const; bool setData(const QModelIndex &index, const QVariant &value, int role); QList<QVariant> childrenColumnList(const QModelIndex &parent, int column) const; + int rowFilter() const { return mRowFilter; } + void setRowFilter(int rowFilter) { mRowFilter = rowFilter; } //find QModelIndex findValue(const QVariant &value, const QModelIndex &parent = QModelIndex(), int searchColumn = 0, int indexColumn = -1) const; @@ -93,6 +96,7 @@ class SeriesTreeModel : public SmTreeModel { QHash<int, QString> mUpdateGenericMap; QColor mFavoriteColor; QString mUpdateGenericTemplate; + int mRowFilter; }; #endif // SERIESTREEMODEL_H |