forked from qt-creator/qt-creator
Update Qml parser.
This commit is contained in:
@@ -61,7 +61,6 @@
|
||||
QT_BEGIN_NAMESPACE
|
||||
|
||||
class QmlError;
|
||||
|
||||
class QML_PARSER_EXPORT QmlDirParser
|
||||
{
|
||||
Q_DISABLE_COPY(QmlDirParser)
|
||||
@@ -96,15 +95,17 @@ public:
|
||||
struct Component
|
||||
{
|
||||
Component()
|
||||
: majorVersion(0), minorVersion(0) {}
|
||||
: majorVersion(0), minorVersion(0), internal(false) {}
|
||||
|
||||
Component(const QString &typeName, const QString &fileName, int majorVersion, int minorVersion)
|
||||
: typeName(typeName), fileName(fileName), majorVersion(majorVersion), minorVersion(minorVersion) {}
|
||||
: typeName(typeName), fileName(fileName), majorVersion(majorVersion), minorVersion(minorVersion),
|
||||
internal(false) {}
|
||||
|
||||
QString typeName;
|
||||
QString fileName;
|
||||
int majorVersion;
|
||||
int minorVersion;
|
||||
bool internal;
|
||||
};
|
||||
|
||||
QList<Component> components() const;
|
||||
@@ -122,6 +123,9 @@ private:
|
||||
unsigned _isParsed: 1;
|
||||
};
|
||||
|
||||
typedef QList<QmlDirParser::Component> QmlDirComponents;
|
||||
|
||||
|
||||
QT_END_NAMESPACE
|
||||
|
||||
#endif // QMLDIRPARSER_P_H
|
||||
|
||||
Reference in New Issue
Block a user