QmlDesigner: Update states editor error message

Task-number: QTCREATORBUG-25630
Change-Id: I255666a3ed4f162af0a579a6f7daa9e28487dd1d
Reviewed-by: Tim Jenssen <tim.jenssen@qt.io>
This commit is contained in:
Henning Gruendl
2021-07-02 17:15:38 +02:00
committed by Henning Gründl
parent f43ac65ccb
commit 0f77cf9077

View File

@@ -146,9 +146,13 @@ void StatesEditorWidget::reloadQmlSource()
setSource(QUrl::fromLocalFile(statesListQmlFilePath));
if (!rootObject()) {
QString errorString;
for (const QQmlError &error : errors())
errorString += "\n" + error.toString();
Core::AsynchronousMessageBox::warning(tr("Cannot Create QtQuick View"),
tr("StatesEditorWidget: %1 cannot be created. "
"Most likely QtQuick.Controls 1 are not installed.").arg(qmlSourcesPath()));
tr("StatesEditorWidget: %1 cannot be created.%2")
.arg(qmlSourcesPath(), errorString));
return;
}