forked from qt-creator/qt-creator
		
	QmlJS: Get rid of xml file describing qml builtin types.
The type information is now generated at runtime.
This commit is contained in:
		@@ -1939,7 +1939,7 @@ const Value *Function::invoke(const Activation *activation) const
 | 
			
		||||
// typing environment
 | 
			
		||||
////////////////////////////////////////////////////////////////////////////////
 | 
			
		||||
 | 
			
		||||
QList<const FakeMetaObject *> CppQmlTypesLoader::objectsFromXml;
 | 
			
		||||
QList<const FakeMetaObject *> CppQmlTypesLoader::builtinObjects;
 | 
			
		||||
 | 
			
		||||
QStringList CppQmlTypesLoader::load(const QFileInfoList &xmlFiles)
 | 
			
		||||
{
 | 
			
		||||
@@ -1968,7 +1968,7 @@ QStringList CppQmlTypesLoader::load(const QFileInfoList &xmlFiles)
 | 
			
		||||
        QMapIterator<QString, FakeMetaObject *> it(newObjects);
 | 
			
		||||
        while (it.hasNext()) {
 | 
			
		||||
            it.next();
 | 
			
		||||
            objectsFromXml.append(it.value());
 | 
			
		||||
            builtinObjects.append(it.value());
 | 
			
		||||
        }
 | 
			
		||||
    }
 | 
			
		||||
 | 
			
		||||
@@ -2359,7 +2359,7 @@ Engine::Engine()
 | 
			
		||||
{
 | 
			
		||||
    initializePrototypes();
 | 
			
		||||
 | 
			
		||||
    _cppQmlTypes.load(this, CppQmlTypesLoader::objectsFromXml);
 | 
			
		||||
    _cppQmlTypes.load(this, CppQmlTypesLoader::builtinObjects);
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
Engine::~Engine()
 | 
			
		||||
 
 | 
			
		||||
@@ -517,7 +517,7 @@ class QMLJS_EXPORT CppQmlTypesLoader
 | 
			
		||||
public:
 | 
			
		||||
    /** \return an empty list when successful, error messages otherwise. */
 | 
			
		||||
    static QStringList load(const QFileInfoList &xmlFiles);
 | 
			
		||||
    static QList<const FakeMetaObject *> objectsFromXml;
 | 
			
		||||
    static QList<const FakeMetaObject *> builtinObjects;
 | 
			
		||||
 | 
			
		||||
    // parses the xml string and fills the newObjects map
 | 
			
		||||
    static QString parseQmlTypeXml(const QByteArray &xml, QMap<QString, FakeMetaObject *> *newObjects);
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user