Added new config flag DoubleClickUndocksWidget to configure if double clicking a DockWidget tab or titlebar undocks the widget

This commit is contained in:
Uwe Kindler
2024-12-12 15:38:29 +01:00
parent e2f611ea9a
commit 7245dced84
4 changed files with 11 additions and 2 deletions

View File

@@ -733,6 +733,11 @@ void CDockAreaTitleBar::mouseDoubleClickEvent(QMouseEvent *event)
return;
}
if (!CDockManager::testConfigFlag(CDockManager::DoubleClickUndocksWidget))
{
return;
}
d->makeAreaFloating(event->pos(), DraggingInactive);
}