From a9caa742c374d0adb778eb38930e20af1454b77f Mon Sep 17 00:00:00 2001 From: itsmattkc Date: Wed, 14 Nov 2018 21:11:22 +1100 Subject: [PATCH] reimplement workaround for qdockwidget bug --- mainwindow.cpp | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/mainwindow.cpp b/mainwindow.cpp index 66198b6d8..ce3d0da38 100644 --- a/mainwindow.cpp +++ b/mainwindow.cpp @@ -62,8 +62,12 @@ void MainWindow::setup_layout() { addDockWidget(Qt::TopDockWidgetArea, panel_sequence_viewer); addDockWidget(Qt::BottomDockWidgetArea, panel_timeline); - // workaround for older versions of Qt (but not too old) - layout()->update(); + layout()->update(); + + // workaround for strange Qt dock bug (see https://bugreports.qt.io/browse/QTBUG-65592) +#if QT_VERSION >= QT_VERSION_CHECK(5, 6, 0) + resizeDocks({panel_project}, {40}, Qt::Horizontal); +#endif } MainWindow::MainWindow(QWidget *parent) :