QmlProjectManager: Do not establish connecttions when using Qt5

Amends 8bb1a862a0.

Change-Id: I4186dda881f06295788e1fe4d6165c999fdbe574
Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
This commit is contained in:
Christian Stenger
2022-05-18 08:58:43 +02:00
parent 8180535ccc
commit 5fe7b3ad6a

View File

@@ -51,11 +51,13 @@ QdsLandingPage::QdsLandingPage(QWidget *parent)
m_dialog->engine()->addImportPath(resourcePath);
m_dialog->setSource(QUrl::fromLocalFile(landingPath + "/main.qml"));
connect(m_dialog->rootObject(), SIGNAL(openQtc(bool)), this, SIGNAL(openCreator(bool)));
connect(m_dialog->rootObject(), SIGNAL(openQds(bool)), this, SIGNAL(openDesigner(bool)));
connect(m_dialog->rootObject(), SIGNAL(installQds()), this, SIGNAL(installDesigner()));
connect(m_dialog->rootObject(), SIGNAL(generateCmake()), this, SIGNAL(generateCmake()));
connect(m_dialog->rootObject(), SIGNAL(generateProjectFile()), this, SIGNAL(generateProjectFile()));
if (m_dialog->rootObject()) { // main.qml only works with Qt6
connect(m_dialog->rootObject(), SIGNAL(openQtc(bool)), this, SIGNAL(openCreator(bool)));
connect(m_dialog->rootObject(), SIGNAL(openQds(bool)), this, SIGNAL(openDesigner(bool)));
connect(m_dialog->rootObject(), SIGNAL(installQds()), this, SIGNAL(installDesigner()));
connect(m_dialog->rootObject(), SIGNAL(generateCmake()), this, SIGNAL(generateCmake()));
connect(m_dialog->rootObject(), SIGNAL(generateProjectFile()), this, SIGNAL(generateProjectFile()));
}
m_dialog->hide();
}