mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
Create stub methods and connects the model with the new statistics
Connects the YearlyStatistics model with the YearlyStatisticsWidget nothing is shown right now, mostly because I need to do everything but now it's easyer to add the things that are missing. Signed-off-by: Tomaz Canabrava <tomaz.canabrava@intel.com> Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
parent
750fc529b7
commit
1c56c9f626
3 changed files with 44 additions and 2 deletions
|
@ -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
|
Loading…
Add table
Add a link
Reference in a new issue