forked from qt-creator/qt-creator
QmlJS: When completing enums, add Item.Foo instead of "Foo".
Change-Id: I9a74bd726d9691ca93477916159a80c04c35f52d Reviewed-on: http://codereview.qt-project.org/4987 Reviewed-by: Thomas Hartmann <Thomas.Hartmann@nokia.com>
This commit is contained in:
@@ -394,17 +394,21 @@ private:
|
||||
Error m_error;
|
||||
};
|
||||
|
||||
class QmlObjectValue;
|
||||
|
||||
class QMLJS_EXPORT QmlEnumValue: public NumberValue
|
||||
{
|
||||
public:
|
||||
QmlEnumValue(const LanguageUtils::FakeMetaEnum &metaEnum, ValueOwner *valueOwner);
|
||||
QmlEnumValue(const QmlObjectValue *owner, int index);
|
||||
virtual ~QmlEnumValue();
|
||||
|
||||
QString name() const;
|
||||
QStringList keys() const;
|
||||
const QmlObjectValue *owner() const;
|
||||
|
||||
private:
|
||||
LanguageUtils::FakeMetaEnum *_metaEnum;
|
||||
const QmlObjectValue *_owner;
|
||||
int _enumIndex;
|
||||
};
|
||||
|
||||
|
||||
|
Reference in New Issue
Block a user