diff --git a/src/DockManager.cpp b/src/DockManager.cpp index 35101d3..d2e982c 100644 --- a/src/DockManager.cpp +++ b/src/DockManager.cpp @@ -58,7 +58,7 @@ namespace ads { -static CDockManager::ConfigFlags StaticConfigFlags = CDockManager::DefaultConfig; +static CDockManager::ConfigFlags StaticConfigFlags = CDockManager::DefaultOpaqueConfig; /** * Private data class of CDockManager class (pimpl) diff --git a/src/DockManager.h b/src/DockManager.h index 766e182..475f072 100644 --- a/src/DockManager.h +++ b/src/DockManager.h @@ -160,25 +160,24 @@ public: DockAreaHasUndockButton = 0x4000, //!< If the flag is set each dock area has an undock button DockAreaHasTabsMenuButton = 0x8000, //!< If the flag is set each dock area has a tabs menu button DockAreaHideDisabledButtons = 0x10000, //!< If the flag is set disabled dock area buttons will not appear on the tollbar at all (enabling them will bring them back) - DefaultConfig = ActiveTabHasCloseButton - | DockAreaHasCloseButton - | DockAreaHasUndockButton - | DockAreaHasTabsMenuButton - | OpaqueSplitterResize - | XmlCompressionEnabled - | OpaqueUndocking, ///< the default configuration - DefaultNonOpaqueConfig = ActiveTabHasCloseButton - | DockAreaHasCloseButton - | DockAreaHasUndockButton - | DockAreaHasTabsMenuButton - | XmlCompressionEnabled + + + DefaultDockAreaButtons = DockAreaHasCloseButton + | DockAreaHasUndockButton + | DockAreaHasTabsMenuButton,///< default configuration of dock area title bar buttons + + DefaultBaseConfig = DefaultDockAreaButtons + | ActiveTabHasCloseButton + | XmlCompressionEnabled,///< default base configuration settings + + DefaultOpaqueConfig = DefaultBaseConfig + | OpaqueSplitterResize + | OpaqueUndocking, ///< the default configuration with opaque operations - this may cause issues if ActiveX or Qt 3D windows are involved + + DefaultNonOpaqueConfig = DefaultBaseConfig | DragPreviewShowsContentPixmap, ///< the default configuration for non opaque operations - NonOpaqueWithWindowFrame = ActiveTabHasCloseButton - | DockAreaHasCloseButton - | DockAreaHasUndockButton - | DockAreaHasTabsMenuButton - | XmlCompressionEnabled - | DragPreviewShowsContentPixmap + + NonOpaqueWithWindowFrame = DefaultNonOpaqueConfig | DragPreviewHasWindowFrame ///< the default configuration for non opaque operations that show a real window with frame }; Q_DECLARE_FLAGS(ConfigFlags, eConfigFlag)