Properly persist dock area HideSingleWidgetTitleBar flag (and all other dock area flags)

This commit is contained in:
Uwe Kindler
2020-08-18 10:48:35 +02:00
parent 81a0234b05
commit c78cc17730
5 changed files with 73 additions and 19 deletions

View File

@@ -400,8 +400,8 @@ void MainWindowPrivate::createContent()
ads::CDockComponentsFactory::setFactory(new CCustomComponentsFactory());
auto TopDockArea = DockManager->addDockWidget(ads::TopDockWidgetArea, FileSystemWidget);
// Uncomment the next line if you would like to test the
// setHideSingleWidgetTitleBar() functionality
// TopDockArea->setHideSingleWidgetTitleBar(true);
// HideSingleWidgetTitleBar functionality
// TopDockArea->setDockAreaFlag(ads::CDockAreaWidget::HideSingleWidgetTitleBar, true);
ads::CDockComponentsFactory::resetDefaultFactory();
// We create a calendar widget and clear all flags to prevent the dock area