forked from qt-creator/qt-creator
Add Qt 6 ifdef for a DesignerWindowManager call
That code path cannot be hit with Qt 6 anyhow. Change-Id: I6f8e2a1a3606a4e6fbaa10f650fc5f22354f48a8 Reviewed-by: Miikka Heikkinen <miikka.heikkinen@qt.io>
This commit is contained in:
@@ -58,18 +58,15 @@ Qt5NodeInstanceClientProxy::Qt5NodeInstanceClientProxy(QObject *parent) :
|
|||||||
NodeInstanceClientProxy(parent)
|
NodeInstanceClientProxy(parent)
|
||||||
{
|
{
|
||||||
prioritizeDown();
|
prioritizeDown();
|
||||||
#if QT_VERSION < QT_VERSION_CHECK(6, 0, 0)
|
|
||||||
const bool qt6 = false;
|
|
||||||
#else
|
|
||||||
const bool qt6 = true;
|
|
||||||
#endif
|
|
||||||
|
|
||||||
const bool unifiedRenderPath = qEnvironmentVariableIsSet("QMLPUPPET_UNIFIED_RENDER_PATH");
|
const bool unifiedRenderPath = qEnvironmentVariableIsSet("QMLPUPPET_UNIFIED_RENDER_PATH");
|
||||||
|
|
||||||
if (unifiedRenderPath)
|
if (unifiedRenderPath)
|
||||||
Internal::QuickItemNodeInstance::enableUnifiedRenderPath(true);
|
Internal::QuickItemNodeInstance::enableUnifiedRenderPath(true);
|
||||||
else if (!qt6)
|
#if QT_VERSION < QT_VERSION_CHECK(6, 0, 0)
|
||||||
|
else
|
||||||
DesignerSupport::activateDesignerWindowManager();
|
DesignerSupport::activateDesignerWindowManager();
|
||||||
|
#endif
|
||||||
|
|
||||||
if (QCoreApplication::arguments().at(1) == QLatin1String("--readcapturedstream")) {
|
if (QCoreApplication::arguments().at(1) == QLatin1String("--readcapturedstream")) {
|
||||||
qputenv("DESIGNER_DONT_USE_SHARED_MEMORY", "1");
|
qputenv("DESIGNER_DONT_USE_SHARED_MEMORY", "1");
|
||||||
|
Reference in New Issue
Block a user