forked from qt-creator/qt-creator
QmlJS: Separate metaObjectRevision from minor version number.
They need not to be identical. Additionally: * Rename ImportInfo::name to path, because that's what it does. * Add ImportInfo::name, for getting the uri with the names separated by dots. * Allow for exportMetaObjectRevisions in qmltypes files. * Allow for exports with an empty type name, as generated by qmlRegisterRevision. They are used for associating meta object revisions with non-exported types. * Rewrite the Qt 4.7 import to QtQuick 1.0 at an early stage. In preparation for the Qt 5 type information update, where Qt 4.7 is gone. Change-Id: Ia287193623d9530a56b9eb8d2481d50aabd94c3e Reviewed-on: http://codereview.qt-project.org/5309 Reviewed-by: Fawzi Mohamed <fawzi.mohamed@nokia.com>
This commit is contained in:
@@ -139,10 +139,12 @@ public:
|
||||
|
||||
class LANGUAGEUTILS_EXPORT Export {
|
||||
public:
|
||||
Export();
|
||||
|
||||
QString package;
|
||||
QString type;
|
||||
ComponentVersion version;
|
||||
QString packageNameVersion;
|
||||
int metaObjectRevision;
|
||||
|
||||
bool isValid() const;
|
||||
};
|
||||
@@ -166,6 +168,7 @@ public:
|
||||
void setClassName(const QString &name);
|
||||
|
||||
void addExport(const QString &name, const QString &package, ComponentVersion version);
|
||||
void setExportMetaObjectRevision(int exportIndex, int metaObjectRevision);
|
||||
QList<Export> exports() const;
|
||||
Export exportInPackage(const QString &package) const;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user