From 54c6537a21b4bf9f909520be5e6e75b73fc5d590 Mon Sep 17 00:00:00 2001 From: triplus Date: Wed, 19 Jun 2019 22:54:23 +0200 Subject: [PATCH] Set QMdiArea tabs movable --- src/Gui/MainWindow.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/Gui/MainWindow.cpp b/src/Gui/MainWindow.cpp index 2ce27c3b1d..2ecc6d539a 100644 --- a/src/Gui/MainWindow.cpp +++ b/src/Gui/MainWindow.cpp @@ -252,6 +252,10 @@ MainWindow::MainWindow(QWidget * parent, Qt::WindowFlags f) // Create the layout containing the workspace and a tab bar d->mdiArea = new QMdiArea(); + // Movable tabs +#if QT_VERSION >= 0x040800 + d->mdiArea->setTabsMovable(true); +#endif #if QT_VERSION >= 0x040500 d->mdiArea->setTabPosition(QTabWidget::South); d->mdiArea->setViewMode(QMdiArea::TabbedView);