summaryrefslogtreecommitdiffstats
path: root/qt-ui/statistics/statisticswidget.h
diff options
context:
space:
mode:
Diffstat (limited to 'qt-ui/statistics/statisticswidget.h')
-rw-r--r--qt-ui/statistics/statisticswidget.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/qt-ui/statistics/statisticswidget.h b/qt-ui/statistics/statisticswidget.h
index b01f2ee17..0042ce67c 100644
--- a/qt-ui/statistics/statisticswidget.h
+++ b/qt-ui/statistics/statisticswidget.h
@@ -3,10 +3,20 @@
#include <QGraphicsView>
+class YearlyStatisticsModel;
+class QModelIndex;
+
class YearlyStatisticsWidget : public QGraphicsView {
Q_OBJECT
public:
YearlyStatisticsWidget(QWidget *parent = 0);
+ void setModel(YearlyStatisticsModel *m);
+public slots:
+ void modelRowsInserted(const QModelIndex& index, int first, int last);
+ void modelRowsRemoved(const QModelIndex& index, int first, int last);
+ void modelDataChanged(const QModelIndex& topLeft, const QModelIndex& bottomRight);
+private:
+ YearlyStatisticsModel *m_model;
};
#endif \ No newline at end of file