Commit ba9ade6d authored by Thorbjørn Lindeijer's avatar Thorbjørn Lindeijer
Browse files

Fixed dock widget features on startup in locked state

In locked state the dock widgets shouldn't have AllDockWidgetFeatures
set, but rather NoDockWidgetFeatures. Otherwise a hidden one-pixel wide
area exists that allows people to move/float a dockwidget, which can be
confusing.

Task: 244531
parent 5f33b124
......@@ -451,10 +451,7 @@ QDockWidget *DebuggerManager::createDockForWidget(QWidget *widget)
{
QDockWidget *dockWidget = new QDockWidget(widget->windowTitle(), m_mainWindow);
dockWidget->setObjectName(widget->windowTitle());
//dockWidget->setAllowedAreas(Qt::BottomDockWidgetArea | Qt::RightDockWidgetArea);
dockWidget->setAllowedAreas(Qt::AllDockWidgetAreas); // that space is needed.
//dockWidget->setFeatures(QDockWidget::NoDockWidgetFeatures);
dockWidget->setFeatures(QDockWidget::AllDockWidgetFeatures);
dockWidget->setFeatures(QDockWidget::NoDockWidgetFeatures);
dockWidget->setTitleBarWidget(new QWidget(dockWidget));
dockWidget->setWidget(widget);
connect(dockWidget->toggleViewAction(), SIGNAL(toggled(bool)),
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment