diff --git a/src/widgets/OverviewWidget.cpp b/src/widgets/OverviewWidget.cpp index 69c51fae..f3ab272c 100644 --- a/src/widgets/OverviewWidget.cpp +++ b/src/widgets/OverviewWidget.cpp @@ -24,6 +24,12 @@ OverviewWidget::OverviewWidget(MainWindow *main, QAction *action) : OverviewWidget::~OverviewWidget() {} +void OverviewWidget::resizeEvent(QResizeEvent *event) +{ + graphView->refreshView(); + QDockWidget::resizeEvent(event); +} + void OverviewWidget::updateContents() { if (!refreshDeferrer->attemptRefresh(nullptr)) { diff --git a/src/widgets/OverviewWidget.h b/src/widgets/OverviewWidget.h index c58c2b01..327bd7e8 100644 --- a/src/widgets/OverviewWidget.h +++ b/src/widgets/OverviewWidget.h @@ -17,6 +17,10 @@ public: private: RefreshDeferrer *refreshDeferrer; + /** + * @brief this takes care of scaling the overview when the widget is resized + */ + void resizeEvent(QResizeEvent *event) override; private slots: /**