summaryrefslogtreecommitdiffstats
path: root/qt-ui/statistics/statisticswidget.h
diff options
context:
space:
mode:
authorGravatar Tomaz Canabrava <tomaz.canabrava@intel.com>2014-08-25 16:31:05 -0300
committerGravatar Dirk Hohndel <dirk@hohndel.org>2014-08-25 13:59:17 -0700
commitb01ef9a0a5da0467aa7630ec1e903331ba4a2d33 (patch)
treed35aa8a70b57c17ec1237778e05ab49f58204b1f /qt-ui/statistics/statisticswidget.h
parent1c56c9f6261521ecb2ad65a760359e6b1ae9fd48 (diff)
downloadsubsurface-b01ef9a0a5da0467aa7630ec1e903331ba4a2d33.tar.gz
Implement the resizeEvent to make the statistics always visible.
Always fit the whole scene in the view. Signed-off-by: Tomaz Canabrava <tomaz.canabrava@intel.com> Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'qt-ui/statistics/statisticswidget.h')
-rw-r--r--qt-ui/statistics/statisticswidget.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/qt-ui/statistics/statisticswidget.h b/qt-ui/statistics/statisticswidget.h
index 0042ce67c..4e62a10fd 100644
--- a/qt-ui/statistics/statisticswidget.h
+++ b/qt-ui/statistics/statisticswidget.h
@@ -11,6 +11,8 @@ class YearlyStatisticsWidget : public QGraphicsView {
public:
YearlyStatisticsWidget(QWidget *parent = 0);
void setModel(YearlyStatisticsModel *m);
+protected:
+ virtual void resizeEvent(QResizeEvent *event);
public slots:
void modelRowsInserted(const QModelIndex& index, int first, int last);
void modelRowsRemoved(const QModelIndex& index, int first, int last);