forked from qt-creator/qt-creator
QmlJS: Always register C++ based components with their C++ name.
This is the name that other components will refer to it by. For
instance, MouseArea has a 'drag' property with type 'QDeclarativeDrag',
since QDeclarativeDrag was only exported as Qt.Drag and QtQuick.Drag,
the type lookup didn't manage to resolve the name.
(cherry picked from commit b53ba61248)
This commit is contained in:
@@ -457,9 +457,7 @@ private:
|
||||
unexpectedElement(_xml.name(), tag);
|
||||
}
|
||||
|
||||
if (metaObject->exports().isEmpty()) {
|
||||
metaObject->addExport(id, QString(), QmlJS::ComponentVersion());
|
||||
}
|
||||
metaObject->addExport(id, QString(), QmlJS::ComponentVersion());
|
||||
|
||||
if (doInsert) {
|
||||
_objects->insert(id, metaObject);
|
||||
|
||||
Reference in New Issue
Block a user