mirror of
https://github.com/githubuser0xFFFF/Qt-Advanced-Docking-System.git
synced 2024-12-25 07:31:33 +08:00
Changed MainWindow to enable ActiveX only for non opaque configuration and if AutoHide is disabled
This commit is contained in:
parent
7d79ea2770
commit
9f153af5bb
@ -495,7 +495,10 @@ void MainWindowPrivate::createContent()
|
||||
|
||||
#ifdef Q_OS_WIN
|
||||
#if (QT_VERSION < QT_VERSION_CHECK(6, 0, 0))
|
||||
if (!ads::CDockManager::testConfigFlag(ads::CDockManager::OpaqueUndocking))
|
||||
// ActiveX widget only works without OpaqueUndocking and without
|
||||
// auto hide feature
|
||||
if (!ads::CDockManager::testConfigFlag(ads::CDockManager::OpaqueUndocking)
|
||||
&& !ads::CDockManager::testAutoHideConfigFlag(ads::CDockManager::AutoHideFeatureEnabled))
|
||||
{
|
||||
DockManager->addDockWidget(ads::CenterDockWidgetArea, createActiveXWidget(), RighDockArea);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user