Support for grouped dragging of dockwidgets

Forum discussion:
https://forum.freecadweb.org/viewtopic.php?f=9&t=45697
This commit is contained in:
triplus
2020-04-26 15:55:06 +02:00
committed by Yorik van Havre
parent 6e18f7ec6e
commit 4fe8215d0f

View File

@@ -288,6 +288,12 @@ MainWindow::MainWindow(QWidget * parent, Qt::WindowFlags f)
// global access
instance = this;
// support for grouped dragging of dockwidgets
// https://woboq.com/blog/qdockwidget-changes-in-56.html
#if QT_VERSION >= 0x050600
setDockOptions(dockOptions() | QMainWindow::GroupedDragging);
#endif
// Create the layout containing the workspace and a tab bar
d->mdiArea = new QMdiArea();
// Movable tabs