QmlDesigner: Improve error message for errors in QML when loading the document

Change-Id: I3c47c199291c3661d0efb3a6df36aa281438d199
Reviewed-by: Tim Jenssen <tim.jenssen@theqtcompany.com>
This commit is contained in:
Thomas Hartmann
2015-07-14 15:34:18 +02:00
committed by Thomas Hartmann
parent aab3b0fc66
commit 4acc370b0f

View File

@@ -110,6 +110,8 @@ void DocumentWarningWidget::setError(const RewriterError &error)
m_goToError->hide(); m_goToError->hide();
} }
str.prepend(tr("Cannot open this QML document because of an error in the QML file:\n\n"));
m_errorMessage->setText(str); m_errorMessage->setText(str);
resize(layout()->totalSizeHint()); resize(layout()->totalSizeHint());
} }