projects
/
harbour-pedalo.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Added new graphs
[harbour-pedalo.git]
/
src
/
statsmodel.h
diff --git
a/src/statsmodel.h
b/src/statsmodel.h
index
2c9991a
..
662cf79
100644
(file)
--- a/
src/statsmodel.h
+++ b/
src/statsmodel.h
@@
-11,15
+11,20
@@
class StatsModel : public QAbstractListModel
Q_OBJECT
public:
enum StatsRoles {
Q_OBJECT
public:
enum StatsRoles {
- ValuesRole = Qt::UserRole + 1,
- LabelsRole
+ TitleRole = Qt::UserRole + 1,
+ ValuesRole,
+ LabelsRole,
+ UnitsRole,
+ MinValRole,
+ MaxValRole,
+ StepRole
};
QHash<int, QByteArray> roleNames() const;
StatsModel(QObject *parent = 0);
};
QHash<int, QByteArray> roleNames() const;
StatsModel(QObject *parent = 0);
- void addStats(const Stats &stats);
+ void addStats(Stats &stats);
int rowCount(const QModelIndex & parent = QModelIndex()) const;
int rowCount(const QModelIndex & parent = QModelIndex()) const;
@@
-27,9
+32,11
@@
public:
void clear();
void clear();
+ Q_INVOKABLE void updateAll();
+
private:
QHash<int, QByteArray> roles;
private:
QHash<int, QByteArray> roles;
- QList<Stats> stats;
+ QList<Stats *> stats;
};
#endif // STATSMODEL_H
};
#endif // STATSMODEL_H