summaryrefslogtreecommitdiffstats
path: root/src/declarative/qml/qmlparser.cpp
diff options
context:
space:
mode:
authormae <qt-info@nokia.com>2009-04-20 19:18:08 (GMT)
committerRoberto Raggi <roberto.raggi@nokia.com>2009-04-24 07:52:40 (GMT)
commitc70d52a5927305b6edd77a47a3d582b4001b25f8 (patch)
tree98e5c09a26b477ec7fdb7ac65fb174e1379415f5 /src/declarative/qml/qmlparser.cpp
parentfffc93d70d15bd5d92277e2978294645aeaa5e4d (diff)
downloadQt-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.cpp10
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;
}