From 3a70006747322708b81b91f52b447abb33d91df0 Mon Sep 17 00:00:00 2001 From: Arno Date: Sat, 14 May 2011 13:26:41 +0200 Subject: Use new field IsLocal in SeriesTreeModel Use field IsLocal in SeriesTreeModel when filtering local or archived files. --- seriestreemodel.h | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'seriestreemodel.h') 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 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 mUpdateGenericMap; QColor mFavoriteColor; QString mUpdateGenericTemplate; + int mRowFilter; }; #endif // SERIESTREEMODEL_H -- cgit v1.2.3-70-g09d2