forked from qt-creator/qt-creator
QmlJS: Remove deprecated enum functions in QmlObjectValue.
Change-Id: I30c1636f4946f465e5924493e561310f506df3d7 Reviewed-on: http://codereview.qt.nokia.com/1043 Reviewed-by: Fawzi Mohamed <fawzi.mohamed@nokia.com>
This commit is contained in:
@@ -369,11 +369,6 @@ bool QmlObjectValue::isListProperty(const QString &propertyName) const
|
||||
return false;
|
||||
}
|
||||
|
||||
bool QmlObjectValue::isEnum(const QString &typeName) const
|
||||
{
|
||||
return _metaObject->enumeratorIndex(typeName) != -1;
|
||||
}
|
||||
|
||||
FakeMetaEnum QmlObjectValue::getEnum(const QString &typeName) const
|
||||
{
|
||||
const int index = _metaObject->enumeratorIndex(typeName);
|
||||
@@ -427,28 +422,6 @@ bool QmlObjectValue::hasProperty(const QString &propertyName) const
|
||||
return false;
|
||||
}
|
||||
|
||||
bool QmlObjectValue::enumContainsKey(const QString &enumName, const QString &enumKeyName) const
|
||||
{
|
||||
int idx = _metaObject->enumeratorIndex(enumName);
|
||||
if (idx == -1)
|
||||
return false;
|
||||
const FakeMetaEnum &fme = _metaObject->enumerator(idx);
|
||||
for (int i = 0; i < fme.keyCount(); ++i) {
|
||||
if (fme.key(i) == enumKeyName)
|
||||
return true;
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
||||
QStringList QmlObjectValue::keysForEnum(const QString &enumName) const
|
||||
{
|
||||
int idx = _metaObject->enumeratorIndex(enumName);
|
||||
if (idx == -1)
|
||||
return QStringList();
|
||||
const FakeMetaEnum &fme = _metaObject->enumerator(idx);
|
||||
return fme.keys();
|
||||
}
|
||||
|
||||
// Returns true if this object is in a package or if there is an object that
|
||||
// has this one in its prototype chain and is itself in a package.
|
||||
bool QmlObjectValue::hasChildInPackage() const
|
||||
|
Reference in New Issue
Block a user