Changed MainWindow to enable ActiveX only for non opaque configuration and if AutoHide is disabled

This commit is contained in:
Uwe Kindler 2022-11-02 08:08:44 +01:00
parent 7d79ea2770
commit 9f153af5bb

View File

@ -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);
}