Commit 4bf5f4bd authored by Christian Kamm's avatar Christian Kamm
Browse files

QmlJS: Respect the REVISION property for methods and properties.

Task-number: QTCREATORBUG-3907
Change-Id: Ic2c1f8cafe381e5216ae7ad73502ca0fae20dda0
Reviewed-on: http://codereview.qt.nokia.com/656

Reviewed-by: default avatarFawzi Mohamed <fawzi.mohamed@nokia.com>
parent 3735f3c4
......@@ -194,7 +194,10 @@ void QmlObjectValue::processMembers(MemberProcessor *processor) const
// process the meta methods
for (int index = 0; index < _metaObject->methodCount(); ++index) {
FakeMetaMethod method = _metaObject->method(index);
const FakeMetaMethod method = _metaObject->method(index);
if (_componentVersion.isValid() && _componentVersion.minorVersion() < method.revision())
continue;
QString methodName;
const Value *signature = findOrCreateSignature(index, method, &methodName);
......@@ -217,7 +220,9 @@ void QmlObjectValue::processMembers(MemberProcessor *processor) const
// process the meta properties
for (int index = 0; index < _metaObject->propertyCount(); ++index) {
FakeMetaProperty prop = _metaObject->property(index);
const FakeMetaProperty prop = _metaObject->property(index);
if (_componentVersion.isValid() && _componentVersion.minorVersion() < prop.revision())
continue;
const QString propertyName = prop.name();
processor->processProperty(propertyName, propertyValue(prop));
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment