diff options
Diffstat (limited to 'qt-ui/statistics/statisticswidget.cpp')
-rw-r--r-- | qt-ui/statistics/statisticswidget.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/qt-ui/statistics/statisticswidget.cpp b/qt-ui/statistics/statisticswidget.cpp index 8ac8d1cdb..89555eb23 100644 --- a/qt-ui/statistics/statisticswidget.cpp +++ b/qt-ui/statistics/statisticswidget.cpp @@ -34,3 +34,9 @@ void YearlyStatisticsWidget::modelDataChanged(const QModelIndex &topLeft, const { // stub } + +void YearlyStatisticsWidget::resizeEvent(QResizeEvent *event) +{ + QGraphicsView::resizeEvent(event); + fitInView(sceneRect(), Qt::IgnoreAspectRatio); +} |