diff options
author | Fawzi Mohamed <[email protected]> | 2014-07-14 18:38:27 +0200 |
---|---|---|
committer | Fawzi Mohamed <[email protected]> | 2014-07-29 15:21:51 +0200 |
commit | 4a60aa7f05ba112a69a4b1b724ccac52b65a9a03 (patch) | |
tree | e04ccb4e890f95e8ca5c5ec468993f8af756f683 /src/libs/qmljs/qmljsdescribevalue.cpp | |
parent | 5518d70d72a2155a0a2e5b138215844502fa3336 (diff) |
qmljs: uniform property info
CppComponent has extra information on properties that makes sense
also for ObjectValues, change the processProperty method to pass
in an extra struct with that info (and that can be later extended).
Change-Id: If09b178a4095bed03ff59bfb2164088309d2c8e2
Reviewed-by: Thomas Hartmann <[email protected]>
Diffstat (limited to 'src/libs/qmljs/qmljsdescribevalue.cpp')
-rw-r--r-- | src/libs/qmljs/qmljsdescribevalue.cpp | 13 |
1 files changed, 11 insertions, 2 deletions
diff --git a/src/libs/qmljs/qmljsdescribevalue.cpp b/src/libs/qmljs/qmljsdescribevalue.cpp index c0c8f2785f1..9213646a843 100644 --- a/src/libs/qmljs/qmljsdescribevalue.cpp +++ b/src/libs/qmljs/qmljsdescribevalue.cpp @@ -187,9 +187,18 @@ public: return true; } - bool processProperty(const QString &name, const Value *value) QTC_OVERRIDE + bool processProperty(const QString &name, const Value *value, const PropertyInfo &pInfo) QTC_OVERRIDE { - return dump(name, value); + d.dumpNewline(); + d.dump(name); + d.openContext(":"); + d.dump("<"); + d.dump(pInfo.toString()); + d.dump(">"); + d.dumpNewline(); // avoid? + value->accept(&d); + d.closeContext(""); + return true; } bool processEnumerator(const QString &name, const Value *value) QTC_OVERRIDE { |