summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorWarwick Allison <warwick.allison@nokia.com>2009-11-23 01:10:26 (GMT)
committerWarwick Allison <warwick.allison@nokia.com>2009-11-23 01:10:26 (GMT)
commit7de5a4981144648a158d893542bfe5ad82d6830d (patch)
treec9cb0b5211d60419bbf964a3b2121180899e1b1e /src
parent9e5cb8c9e6a8526a26cd6ada9ccec1aba002cf68 (diff)
downloadQt-7de5a4981144648a158d893542bfe5ad82d6830d.zip
Qt-7de5a4981144648a158d893542bfe5ad82d6830d.tar.gz
Qt-7de5a4981144648a158d893542bfe5ad82d6830d.tar.bz2
Tidy (and fix) error messages.
Diffstat (limited to 'src')
-rw-r--r--src/declarative/util/qmllistmodel.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/declarative/util/qmllistmodel.cpp b/src/declarative/util/qmllistmodel.cpp
index a3c5c59..5491fd7 100644
--- a/src/declarative/util/qmllistmodel.cpp
+++ b/src/declarative/util/qmllistmodel.cpp
@@ -732,11 +732,11 @@ bool QmlListModelParser::compileProperty(const QmlCustomParserProperty &prop, QL
for(int jj = 0; jj < props.count(); ++jj) {
const QmlCustomParserProperty &nodeProp = props.at(jj);
if (nodeProp.name() == "") {
- error(nodeProp, QLatin1String("Cannot use default property in ListModel"));
+ error(nodeProp, QmlListModel::tr("ListElement: cannot use default property"));
return false;
}
if (nodeProp.name() == "id") {
- error(nodeProp, QLatin1String("Cannot use reserved \"id\" property in ListModel"));
+ error(nodeProp, QmlListModel::tr("ListElement: cannot use reserved \"id\" property"));
return false;
}
@@ -792,7 +792,7 @@ QByteArray QmlListModelParser::compile(const QList<QmlCustomParserProperty> &cus
for(int ii = 0; ii < customProps.count(); ++ii) {
const QmlCustomParserProperty &prop = customProps.at(ii);
if(prop.name() != "") { // isn't default property
- error(prop, QLatin1String("Cannot use default property"));
+ error(prop, QmlListModel::tr("ListModel: undefined property '%1'").arg(QString::fromUtf8(prop.name())));
return QByteArray();
}