forked from qt-creator/qt-creator
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:
committed by
Henning Gründl
parent
f43ac65ccb
commit
0f77cf9077
@@ -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;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user