diff options
author | mae <qt-info@nokia.com> | 2009-04-20 19:18:08 (GMT) |
---|---|---|
committer | Roberto Raggi <roberto.raggi@nokia.com> | 2009-04-24 07:52:40 (GMT) |
commit | c70d52a5927305b6edd77a47a3d582b4001b25f8 (patch) | |
tree | 98e5c09a26b477ec7fdb7ac65fb174e1379415f5 /src/declarative/qml/qmlparser.cpp | |
parent | fffc93d70d15bd5d92277e2978294645aeaa5e4d (diff) | |
download | Qt-c70d52a5927305b6edd77a47a3d582b4001b25f8.zip Qt-c70d52a5927305b6edd77a47a3d582b4001b25f8.tar.gz Qt-c70d52a5927305b6edd77a47a3d582b4001b25f8.tar.bz2 |
optional property debug output when the environment variable DUI_DEBUG is defined.
Diffstat (limited to 'src/declarative/qml/qmlparser.cpp')
-rw-r--r-- | src/declarative/qml/qmlparser.cpp | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/src/declarative/qml/qmlparser.cpp b/src/declarative/qml/qmlparser.cpp index 9bcd53d..f019a8b 100644 --- a/src/declarative/qml/qmlparser.cpp +++ b/src/declarative/qml/qmlparser.cpp @@ -152,10 +152,12 @@ Object *QmlParser::Property::getValue() void QmlParser::Property::addValue(Value *v) { - if (v->object) - qDebug() << "Property" << name << "addValue Object(" << v->object->typeName << ")"; - else - qDebug() << "Property" << name << "addValue" << v->primitive; + if (::getenv("DUI_DEBUG")) { + if (v->object) + qDebug() << "Property" << name << "addValue Object(" << v->object->typeName << ")"; + else + qDebug() << "Property" << name << "addValue" << v->primitive; + } values << v; } |