summaryrefslogtreecommitdiff
path: root/src/plugins/studiowelcome
diff options
context:
space:
mode:
authorHenning Gruendl <henning.gruendl@qt.io>2022-08-18 18:31:53 +0200
committerHenning Gründl <henning.gruendl@qt.io>2022-08-18 16:33:04 +0000
commit56b0fab13eadccdb881437d977ae509d03f291f3 (patch)
treeadfdee7047ff1ca4130a8c9399c9b7727cb6b5c4 /src/plugins/studiowelcome
parent2d86c290ce52953dbb723017b8b226b8599bbeed (diff)
downloadqt-creator-56b0fab13eadccdb881437d977ae509d03f291f3.tar.gz
QmlDesigner: Fix debug compilation error
In WelcomeMode accidentally the wrong widget was used. Fix by replacing m_modeWidget (QWidget) with m_quickWidget (QQuickWidget). Change-Id: Ie04dc3a2cc843ee4d430c3cefba6c48697c6046f Reviewed-by: Tim Jenssen <tim.jenssen@qt.io>
Diffstat (limited to 'src/plugins/studiowelcome')
-rw-r--r--src/plugins/studiowelcome/studiowelcomeplugin.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/plugins/studiowelcome/studiowelcomeplugin.cpp b/src/plugins/studiowelcome/studiowelcomeplugin.cpp
index c7845f231e..f78bc1ca62 100644
--- a/src/plugins/studiowelcome/studiowelcomeplugin.cpp
+++ b/src/plugins/studiowelcome/studiowelcomeplugin.cpp
@@ -733,10 +733,10 @@ void WelcomeMode::setupQuickWidget(const QString &welcomePagePath)
if (!useNewWelcomePage()) {
#ifdef QT_DEBUG
- m_modeWidget->engine()->addImportPath(QLatin1String(STUDIO_QML_PATH)
- + "welcomepage/imports");
- m_modeWidget->setSource(QUrl::fromLocalFile(QLatin1String(STUDIO_QML_PATH)
- + "welcomepage/main.qml"));
+ m_quickWidget->engine()->addImportPath(QLatin1String(STUDIO_QML_PATH)
+ + "welcomepage/imports");
+ m_quickWidget->setSource(
+ QUrl::fromLocalFile(QLatin1String(STUDIO_QML_PATH) + "welcomepage/main.qml"));
#else
m_quickWidget->engine()->addImportPath("qrc:/qml/welcomepage/imports");
m_quickWidget->setSource(QUrl("qrc:/qml/welcomepage/main.qml"));