QmlDesigner.Rewriter: Cleaning up the warning code

The class is renamed to RewriterError and moved outside of RewriterView.
Reason: Inner classes cannot be forward declared in C++.

Changing RewriterView::Error to RewriterError, because inner
classes cannot be forward declared.

Change-Id: I51e3b08efeda44a8cd2abe84e833a5f8c190b84e
Reviewed-by: Tim Jenssen <tim.jenssen@theqtcompany.com>
This commit is contained in:
Thomas Hartmann
2015-07-09 13:41:25 +02:00
committed by Thomas Hartmann
parent 9b4512f906
commit 8cdfc4e097
9 changed files with 177 additions and 149 deletions

View File

@@ -171,7 +171,7 @@ Model* DesignDocument::createInFileComponentModel()
/*!
Returns any errors that happened when parsing the latest qml file.
*/
QList<RewriterView::Error> DesignDocument::qmlSyntaxErrors() const
QList<RewriterError> DesignDocument::qmlSyntaxErrors() const
{
return m_rewriterView->errors();
}