summaryrefslogtreecommitdiffstats
path: root/seriestreemodel.h
diff options
context:
space:
mode:
Diffstat (limited to 'seriestreemodel.h')
-rw-r--r--seriestreemodel.h4
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