diff --git a/main.cpp b/main.cpp index 6205d761c..4286a3bd0 100644 --- a/main.cpp +++ b/main.cpp @@ -13,7 +13,7 @@ int main(int argc, char *argv[]) { QApplication a(argc, argv); MainWindow w; - w.show(); + w.showMaximized(); return a.exec(); } diff --git a/mainwindow.cpp b/mainwindow.cpp index 689186fe1..c41d050df 100644 --- a/mainwindow.cpp +++ b/mainwindow.cpp @@ -63,9 +63,7 @@ void MainWindow::setup_layout() { addDockWidget(Qt::BottomDockWidgetArea, panel_timeline); // workaround for older versions of Qt (but not too old) -#if QT_VERSION >= QT_VERSION_CHECK(5, 6, 0) // adds compatibility with 5.5 - resizeDocks({panel_project}, {40}, Qt::Horizontal); -#endif + layout()->update(); } MainWindow::MainWindow(QWidget *parent) : @@ -107,6 +105,8 @@ MainWindow::MainWindow(QWidget *parent) : setDockNestingEnabled(true); + layout()->invalidate(); + // TODO maybe replace these with non-pointers later on? panel_sequence_viewer = new Viewer(this); panel_footage_viewer = new Viewer(this);