diff --git a/examples/autohide/mainwindow.cpp b/examples/autohide/mainwindow.cpp index 7d14a6f..ff9259a 100644 --- a/examples/autohide/mainwindow.cpp +++ b/examples/autohide/mainwindow.cpp @@ -26,7 +26,7 @@ CMainWindow::CMainWindow(QWidget *parent) CDockManager::setConfigFlag(CDockManager::OpaqueSplitterResize, true); CDockManager::setConfigFlag(CDockManager::XmlCompressionEnabled, false); CDockManager::setConfigFlag(CDockManager::FocusHighlighting, true); - CDockManager::setConfigFlag(CDockManager::DefaultDockContainerConfig, true); + CDockManager::setConfigFlag(CDockManager::DefaultAutoHideConfig, true); DockManager = new CDockManager(this); // Set central widget diff --git a/src/DockAreaWidget.cpp b/src/DockAreaWidget.cpp index 60261cc..2112192 100644 --- a/src/DockAreaWidget.cpp +++ b/src/DockAreaWidget.cpp @@ -815,7 +815,7 @@ void CDockAreaWidget::updateTitleBarVisibility() d->TitleBar->setVisible(isOverlayed() ? true : !Hidden); // Titlebar must always be visible when overlayed so it can be dragged auto tabBar = d->TitleBar->tabBar(); tabBar->setVisible(isOverlayed() ? false : !Hidden); // Never show tab bar when overlayed - d->TitleBar->overlayTitleLabel()->setVisible(isOverlayed()); // Always show when overlayed, never otherwise + d->TitleBar->overlayTitleLabel()->setVisible(CDockManager::testConfigFlag(CDockManager::DockAreaOverlayHasTitle) && isOverlayed()); // Always show when overlayed, never otherwise updateTitleBarButtonVisibility(Container->topLevelDockArea() == this); } } diff --git a/src/DockManager.h b/src/DockManager.h index 14b3331..04c8283 100644 --- a/src/DockManager.h +++ b/src/DockManager.h @@ -206,15 +206,16 @@ public: DockAreaHasAutoHideButton = 0x4000000, //!< If the flag is set each dock area has a auto hide menu button DockContainerHasLeftSideBar = 0x8000000, //!< If the flag is set each container will have a left side bar DockContainerHasRightSideBar = 0x10000000, //!< If the flag is set each container will have a right side bar - + DockAreaOverlayHasTitle = 0x20000000, //!< If the flag is set overlay dock area title bar will show the window title DefaultDockAreaButtons = DockAreaHasCloseButton | DockAreaHasUndockButton | DockAreaHasTabsMenuButton, ///< default configuration of dock area title bar buttons - DefaultDockContainerConfig = DockContainerHasLeftSideBar - | DockContainerHasRightSideBar - | DockAreaHasAutoHideButton, ///< the default configuration for left and right side bars + DefaultAutoHideConfig = DockContainerHasLeftSideBar + | DockContainerHasRightSideBar + | DockAreaHasAutoHideButton + | DockAreaOverlayHasTitle, ///< the default configuration for left and right side bars DefaultBaseConfig = DefaultDockAreaButtons | ActiveTabHasCloseButton