diff --git a/examples/autohide/mainwindow.cpp b/examples/autohide/mainwindow.cpp index 32fc754..7d14a6f 100644 --- a/examples/autohide/mainwindow.cpp +++ b/examples/autohide/mainwindow.cpp @@ -3,26 +3,17 @@ #include "ui_mainwindow.h" #include -#include -#include -#include #include #include #include -#include -#include #include #include #include -#include #include #include #include "DockAreaWidget.h" #include "DockAreaTitleBar.h" -#include "DockAreaTabBar.h" -#include "FloatingDockContainer.h" -#include "DockComponentsFactory.h" using namespace ads; @@ -35,6 +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); DockManager = new CDockManager(this); // Set central widget diff --git a/src/DockManager.h b/src/DockManager.h index 88dcdf9..d7930b4 100644 --- a/src/DockManager.h +++ b/src/DockManager.h @@ -210,8 +210,7 @@ public: DefaultDockAreaButtons = DockAreaHasCloseButton | DockAreaHasUndockButton - | DockAreaHasTabsMenuButton - | DockAreaHasAutoHideButton,///< default configuration of dock area title bar buttons + | DockAreaHasTabsMenuButton, ///< default configuration of dock area title bar buttons DefaultDockContainerSideBars = DockContainerHasLeftSideBar | DockContainerHasRightSideBar, ///< the default configuration for left and right side bars