Skip to content

Commit

Permalink
Set QMdiArea tabs movable
Browse files Browse the repository at this point in the history
  • Loading branch information
triplus authored and wwmayer committed Jun 20, 2019
1 parent 12ae0b3 commit 54c6537
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/Gui/MainWindow.cpp
Expand Up @@ -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);
Expand Down

0 comments on commit 54c6537

Please sign in to comment.