summaryrefslogtreecommitdiffstats
path: root/qt-ui/statistics
diff options
context:
space:
mode:
authorGravatar Tomaz Canabrava <tomaz.canabrava@intel.com>2014-08-25 15:46:08 -0300
committerGravatar Dirk Hohndel <dirk@hohndel.org>2014-08-25 13:57:28 -0700
commit2fe1dfe83ad2c9f55010bef5bad48c4fd4b04bea (patch)
tree13343656bbb3414d1a2a6a538be531efd26f510e /qt-ui/statistics
parent537b42e3f7922e41cf3851b297033cc1f07fb922 (diff)
downloadsubsurface-2fe1dfe83ad2c9f55010bef5bad48c4fd4b04bea.tar.gz
Remove a lot of non-necessary boilerplate code.
We used to have a very sad way of controlling the statistics, now we will create the model when there's a need for it. Signed-off-by: Tomaz Canabrava <tomaz.canabrava@intel.com> Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'qt-ui/statistics')
-rw-r--r--qt-ui/statistics/statisticswidget.cpp5
-rw-r--r--qt-ui/statistics/statisticswidget.h12
2 files changed, 17 insertions, 0 deletions
diff --git a/qt-ui/statistics/statisticswidget.cpp b/qt-ui/statistics/statisticswidget.cpp
index e69de29bb..71ac7843e 100644
--- a/qt-ui/statistics/statisticswidget.cpp
+++ b/qt-ui/statistics/statisticswidget.cpp
@@ -0,0 +1,5 @@
+#include "statisticswidget.h"
+
+YearlyStatisticsWidget::YearlyStatisticsWidget(QWidget *parent): QGraphicsView(parent)
+{
+}
diff --git a/qt-ui/statistics/statisticswidget.h b/qt-ui/statistics/statisticswidget.h
index e69de29bb..b01f2ee17 100644
--- a/qt-ui/statistics/statisticswidget.h
+++ b/qt-ui/statistics/statisticswidget.h
@@ -0,0 +1,12 @@
+#ifndef YEARLYSTATISTICSWIDGET_H
+#define YEARLYSTATISTICSWIDGET_H
+
+#include <QGraphicsView>
+
+class YearlyStatisticsWidget : public QGraphicsView {
+ Q_OBJECT
+public:
+ YearlyStatisticsWidget(QWidget *parent = 0);
+};
+
+#endif \ No newline at end of file