aboutsummaryrefslogtreecommitdiffstats
path: root/src/qml/qml/qqmlcustomparser.cpp
diff options
context:
space:
mode:
authorSimon Hausmann <simon.hausmann@qt.io>2016-06-15 16:49:25 +0200
committerSimon Hausmann <simon.hausmann@qt.io>2016-06-17 04:03:33 +0000
commit8c10d12be1a219a6bd5bd54499b281551c79c823 (patch)
treee029905ef0f394b91d7a2512492bc183c45fcd5e /src/qml/qml/qqmlcustomparser.cpp
parentb75988f57498436e1e4417324172f73cb0fc3b80 (diff)
Remove remaining dependency of QQmlPropertyValidator on QQmlTypeCompiler
Instead we can get most of the data from QV4::CompilationUnit - which is always ready at that point in time. And errors are now returned explicitly in the API. Change-Id: I6acbeb550661f88f7fad09e97f78a1a4cbd77568 Reviewed-by: Lars Knoll <lars.knoll@qt.io>
Diffstat (limited to 'src/qml/qml/qqmlcustomparser.cpp')
-rw-r--r--src/qml/qml/qqmlcustomparser.cpp6
1 files changed, 1 insertions, 5 deletions
diff --git a/src/qml/qml/qqmlcustomparser.cpp b/src/qml/qml/qqmlcustomparser.cpp
index 30eed4d551..85c91a592a 100644
--- a/src/qml/qml/qqmlcustomparser.cpp
+++ b/src/qml/qml/qqmlcustomparser.cpp
@@ -100,11 +100,7 @@ void QQmlCustomParser::clearErrors()
*/
void QQmlCustomParser::error(const QV4::CompiledData::Location &location, const QString &description)
{
- QQmlError error;
- error.setLine(location.line);
- error.setColumn(location.column);
- error.setDescription(description);
- exceptions << error;
+ exceptions << QQmlCompileError(location, description);
}
struct StaticQtMetaObject : public QObject