2017-04-27 18:26:05 +00:00
|
|
|
// SPDX-License-Identifier: GPL-2.0
|
2014-08-25 18:46:08 +00:00
|
|
|
#ifndef YEARLYSTATISTICSWIDGET_H
|
|
|
|
#define YEARLYSTATISTICSWIDGET_H
|
|
|
|
|
|
|
|
#include <QGraphicsView>
|
|
|
|
|
2014-08-25 19:10:47 +00:00
|
|
|
class YearlyStatisticsModel;
|
|
|
|
class QModelIndex;
|
|
|
|
|
2014-08-25 18:46:08 +00:00
|
|
|
class YearlyStatisticsWidget : public QGraphicsView {
|
|
|
|
Q_OBJECT
|
|
|
|
public:
|
|
|
|
YearlyStatisticsWidget(QWidget *parent = 0);
|
2014-08-25 19:10:47 +00:00
|
|
|
void setModel(YearlyStatisticsModel *m);
|
2014-08-25 19:31:05 +00:00
|
|
|
protected:
|
2018-09-29 20:13:44 +00:00
|
|
|
void resizeEvent(QResizeEvent *event) override;
|
2014-08-25 19:10:47 +00: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 18:46:08 +00:00
|
|
|
};
|
|
|
|
|
2017-04-27 18:26:05 +00:00
|
|
|
#endif
|