From 16e70231d7b59b5ab181597c295253cccb80b235 Mon Sep 17 00:00:00 2001 From: Simon Hausmann Date: Wed, 26 Feb 2014 18:43:28 +0100 Subject: Add a column to the default method error message This brings both compilers in sync by reporting line and column if doing a signal object assignment without a default method. Change-Id: I8b1bf90c4ce3cd7b117ad7eecdbfe319b07b1191 Reviewed-by: Lars Knoll --- src/qml/qml/qqmlcompiler.cpp | 1 + 1 file changed, 1 insertion(+) (limited to 'src/qml/qml/qqmlcompiler.cpp') diff --git a/src/qml/qml/qqmlcompiler.cpp b/src/qml/qml/qqmlcompiler.cpp index 3e2fc91cf5..aefd3018c9 100644 --- a/src/qml/qml/qqmlcompiler.cpp +++ b/src/qml/qml/qqmlcompiler.cpp @@ -1343,6 +1343,7 @@ void QQmlCompiler::genObjectBody(QQmlScript::Object *obj) Instruction::AssignSignalObject assign; assign.line = v->location.start.line; + assign.column = v->location.start.column; assign.signal = output->indexForString(prop->name().toString()); output->addInstruction(assign); -- cgit v1.2.3