From 8bfb98ea2004f58cc0e1a289a2fb16fb95b2197a Mon Sep 17 00:00:00 2001 From: Syarif Fakhri Date: Thu, 8 Sep 2022 11:23:45 +0800 Subject: [PATCH] Remove auto hide feature being set by default. Add config for the default auto hide feature. --- examples/autohide/mainwindow.cpp | 10 +--------- src/DockManager.h | 3 +-- 2 files changed, 2 insertions(+), 11 deletions(-) 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