Fix a resizing issue

This commit is contained in:
vane11ope 2019-01-25 03:04:39 +09:00 committed by Florian Märkl
parent b25afecc2c
commit 43363f25e6
2 changed files with 10 additions and 0 deletions

View File

@ -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)) {

View File

@ -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:
/**