forked from qt-creator/qt-creator
QmlJS: Fix library-by-path imports.
Fixes the problem5426c3ac2cand7b25f438c6worked around. Reviewed-by: Erik Verbruggen (cherry picked from commite21311132b) Change-Id: I5426c3ac2cdf898ca1190a7746ba506ff24abc50xx Reviewed-on: http://codereview.qt.nokia.com/381 Reviewed-by: Qt Sanity Bot <qt_sanity_bot@ovi.com> Reviewed-by: hjk <qthjk@ovi.com>
This commit is contained in:
@@ -633,11 +633,12 @@ public:
|
||||
LanguageUtils::ComponentVersion version) const;
|
||||
|
||||
private:
|
||||
QmlObjectValue *makeObject(Engine *engine,
|
||||
LanguageUtils::FakeMetaObject::ConstPtr metaObject,
|
||||
const LanguageUtils::FakeMetaObject::Export &exp);
|
||||
void setPrototypes(QmlObjectValue *object);
|
||||
QmlObjectValue *getOrCreate(const QString &package, const QString &cppName);
|
||||
QmlObjectValue *getOrCreate(Engine *engine,
|
||||
LanguageUtils::FakeMetaObject::ConstPtr metaObject,
|
||||
const LanguageUtils::FakeMetaObject::Export &exp,
|
||||
bool *wasCreated = 0);
|
||||
QmlObjectValue *getOrCreateForPackage(const QString &package, const QString &cppName);
|
||||
|
||||
|
||||
QHash<QString, QList<QmlObjectValue *> > _typesByPackage;
|
||||
@@ -1036,6 +1037,10 @@ public:
|
||||
|
||||
void addImport(const ObjectValue *import, const ImportInfo &info);
|
||||
ImportInfo importInfo(const QString &name, const Context *context) const;
|
||||
|
||||
#ifdef QT_DEBUG
|
||||
void dump() const;
|
||||
#endif
|
||||
};
|
||||
|
||||
} } // namespace QmlJS::Interpreter
|
||||
|
||||
Reference in New Issue
Block a user