Skip to content
Snippets Groups Projects
Commit e98bc812 authored by Van Herck, Walter's avatar Van Herck, Walter
Browse files

Fix for Qt versions before 5.6

parent 743a0362
No related branches found
No related tags found
No related merge requests found
......@@ -56,9 +56,11 @@ void DocksController::onResetLayout()
m_mainWindow->addDockWidget(it.second.area(), it.second.dock());
// Fixes issue: https://bugreports.qt.io/browse/QTBUG-65592
#if QT_VERSION >= 0x050600
dockWidgetList = m_mainWindow->dockWidgets();
if (dockWidgetList.size()>0)
m_mainWindow->resizeDocks({dockWidgetList.first()}, {10}, Qt::Horizontal);
#endif
for (QDockWidget* dockWidget : dockWidgetList)
dockWidget->show();
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment