forked from qt-creator/qt-creator
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: Fawzi Mohamed <fawzi.mohamed@nokia.com>
This commit is contained in:
@@ -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));
|
||||
|
Reference in New Issue
Block a user