summaryrefslogtreecommitdiffstats
path: root/src/declarative/debugger
diff options
context:
space:
mode:
authorBea Lam <bea.lam@nokia.com>2009-09-24 06:19:56 (GMT)
committerBea Lam <bea.lam@nokia.com>2009-09-24 06:19:56 (GMT)
commitf1e06cdd804934ff8c0b350b41d3d7187a21560c (patch)
tree8cc7053f90d6155f0336e7ac808e21081f48d9c3 /src/declarative/debugger
parentca244487b4ecc71f14ef6e0d371e848620b15b8d (diff)
downloadQt-f1e06cdd804934ff8c0b350b41d3d7187a21560c.zip
Qt-f1e06cdd804934ff8c0b350b41d3d7187a21560c.tar.gz
Qt-f1e06cdd804934ff8c0b350b41d3d7187a21560c.tar.bz2
Indicate which properties are watchable and use bold text instead of
coloured text for watched properties.
Diffstat (limited to 'src/declarative/debugger')
-rw-r--r--src/declarative/debugger/qmldebug.cpp14
-rw-r--r--src/declarative/debugger/qmldebug.h2
2 files changed, 12 insertions, 4 deletions
diff --git a/src/declarative/debugger/qmldebug.cpp b/src/declarative/debugger/qmldebug.cpp
index 406d955..a515c1d 100644
--- a/src/declarative/debugger/qmldebug.cpp
+++ b/src/declarative/debugger/qmldebug.cpp
@@ -105,9 +105,10 @@ void QmlEngineDebugPrivate::decode(QDataStream &ds, QmlDebugObjectReference &o,
QmlEngineDebugServer::QmlObjectProperty data;
ds >> data;
QmlDebugPropertyReference prop;
+ prop.m_objectDebugId = o.m_debugId;
prop.m_name = data.name;
prop.m_binding = data.binding;
- prop.m_objectDebugId = o.m_debugId;
+ prop.m_hasNotifySignal = data.hasNotifySignal;
if (data.type == QmlEngineDebugServer::QmlObjectProperty::Basic)
prop.m_value = data.value;
else if (data.type == QmlEngineDebugServer::QmlObjectProperty::Object) {
@@ -742,18 +743,18 @@ void QmlDebugFileReference::setColumnNumber(int c)
}
QmlDebugPropertyReference::QmlDebugPropertyReference()
-: m_objectDebugId(-1)
+: m_objectDebugId(-1), m_hasNotifySignal(false)
{
}
QmlDebugPropertyReference::QmlDebugPropertyReference(const QmlDebugPropertyReference &o)
-: m_objectDebugId(o.m_objectDebugId), m_name(o.m_name), m_value(o.m_value), m_binding(o.m_binding)
+: m_objectDebugId(o.m_objectDebugId), m_name(o.m_name), m_value(o.m_value), m_binding(o.m_binding), m_hasNotifySignal(o.m_hasNotifySignal)
{
}
QmlDebugPropertyReference &QmlDebugPropertyReference::operator=(const QmlDebugPropertyReference &o)
{
- m_objectDebugId = o.m_objectDebugId; m_name = o.m_name; m_value = o.m_value; m_binding = o.m_binding;
+ m_objectDebugId = o.m_objectDebugId; m_name = o.m_name; m_value = o.m_value; m_binding = o.m_binding; m_hasNotifySignal = o.m_hasNotifySignal;
return *this;
}
@@ -776,3 +777,8 @@ QString QmlDebugPropertyReference::binding() const
{
return m_binding;
}
+
+bool QmlDebugPropertyReference::hasNotifySignal() const
+{
+ return m_hasNotifySignal;
+}
diff --git a/src/declarative/debugger/qmldebug.h b/src/declarative/debugger/qmldebug.h
index be28a7e..9fd5fae 100644
--- a/src/declarative/debugger/qmldebug.h
+++ b/src/declarative/debugger/qmldebug.h
@@ -229,6 +229,7 @@ public:
QString name() const;
QVariant value() const;
QString binding() const;
+ bool hasNotifySignal() const;
private:
friend class QmlEngineDebugPrivate;
@@ -236,6 +237,7 @@ private:
QString m_name;
QVariant m_value;
QString m_binding;
+ bool m_hasNotifySignal;
};