Add graph animation; support for line graphs
[harbour-pedalo.git] / src / statsmodel.h
index 662cf79..3a2b41b 100644 (file)
@@ -12,12 +12,13 @@ class StatsModel : public QAbstractListModel
 public:
     enum StatsRoles {
         TitleRole = Qt::UserRole + 1,
-        ValuesRole,
+        BarValuesRole,
+        LineValuesRole,
         LabelsRole,
         UnitsRole,
         MinValRole,
         MaxValRole,
-        StepRole
+        StepRole,
     };
 
     QHash<int, QByteArray> roleNames() const;
@@ -37,6 +38,7 @@ public:
 private:
     QHash<int, QByteArray> roles;
     QList<Stats *> stats;
+    int visibleIndex;
 };
 
 #endif // STATSMODEL_H