summaryrefslogtreecommitdiffstats
path: root/src/declarative/qml
diff options
context:
space:
mode:
authorWarwick Allison <warwick.allison@nokia.com>2010-05-24 06:36:56 (GMT)
committerWarwick Allison <warwick.allison@nokia.com>2010-05-24 06:43:26 (GMT)
commit82e5ad18fdde7fba4146f28dec897328ec331dff (patch)
treebbd7059392fc14226df545e2115a81755e88c4db /src/declarative/qml
parent61bd72461b2f02bdcd316b32de7749eca8692212 (diff)
downloadQt-82e5ad18fdde7fba4146f28dec897328ec331dff.zip
Qt-82e5ad18fdde7fba4146f28dec897328ec331dff.tar.gz
Qt-82e5ad18fdde7fba4146f28dec897328ec331dff.tar.bz2
Be slightly more verbose on assigning undefined in binding.
Task-number: QTBUG-10303
Diffstat (limited to 'src/declarative/qml')
-rw-r--r--src/declarative/qml/qdeclarativebinding.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/declarative/qml/qdeclarativebinding.cpp b/src/declarative/qml/qdeclarativebinding.cpp
index 8230941..7385728 100644
--- a/src/declarative/qml/qdeclarativebinding.cpp
+++ b/src/declarative/qml/qdeclarativebinding.cpp
@@ -191,7 +191,9 @@ void QDeclarativeBinding::update(QDeclarativePropertyPrivate::WriteFlags flags)
data->error.setUrl(url);
data->error.setLine(line);
data->error.setColumn(-1);
- data->error.setDescription(QLatin1String("Unable to assign [undefined] to ") + QLatin1String(QMetaType::typeName(data->property.propertyType())));
+ data->error.setDescription(QLatin1String("Unable to assign [undefined] to ")
+ + QLatin1String(QMetaType::typeName(data->property.propertyType()))
+ + QLatin1String(" ") + data->property.name());
} else if (!scriptValue.isRegExp() && scriptValue.isFunction()) {