2014-08-25 15:46:08 -03:00
|
|
|
#ifndef YEARLYSTATISTICSWIDGET_H
|
|
|
|
#define YEARLYSTATISTICSWIDGET_H
|
|
|
|
|
|
|
|
#include <QGraphicsView>
|
|
|
|
|
2014-08-25 16:10:47 -03:00
|
|
|
class YearlyStatisticsModel;
|
|
|
|
class QModelIndex;
|
|
|
|
|
2014-08-25 15:46:08 -03:00
|
|
|
class YearlyStatisticsWidget : public QGraphicsView {
|
|
|
|
Q_OBJECT
|
|
|
|
public:
|
|
|
|
YearlyStatisticsWidget(QWidget *parent = 0);
|
2014-08-25 16:10:47 -03:00
|
|
|
void setModel(YearlyStatisticsModel *m);
|
2014-08-25 16:31:05 -03:00
|
|
|
protected:
|
|
|
|
virtual void resizeEvent(QResizeEvent *event);
|
2014-08-25 16:10:47 -03:00
|
|
|
public slots:
|
|
|
|
void modelRowsInserted(const QModelIndex& index, int first, int last);
|
|
|
|
void modelDataChanged(const QModelIndex& topLeft, const QModelIndex& bottomRight);
|
|
|
|
private:
|
|
|
|
YearlyStatisticsModel *m_model;
|
2014-08-25 15:46:08 -03:00
|
|
|
};
|
|
|
|
|
|
|
|
#endif
|