forked from qt-creator/qt-creator
QmlDesigner: Fix error for Connections
Connections is actually in QtQml. Change-Id: I88d33e273efa542535ef7f87a4020c23f172b15e Reviewed-by: Tim Jenssen <tim.jenssen@qt.io>
This commit is contained in:
@@ -656,7 +656,9 @@ QObject *ObjectNodeInstance::createPrimitiveFromSource(const QString &typeName,
|
||||
if (parts.isEmpty())
|
||||
return 0;
|
||||
|
||||
const QString importString = parts.join(".") + " " + QString::number(majorNumber) + "." + QString::number(minorNumber);
|
||||
QString importString = parts.join(".") + " " + QString::number(majorNumber) + "." + QString::number(minorNumber);
|
||||
if (importString == "QtQuick 1.0") /* Workaround for implicit QQml import */
|
||||
importString = "QtQuick 2.0";
|
||||
QString source = "import " + importString + "\n" + unqualifiedTypeName + " {\n" + "}\n";
|
||||
return createCustomParserObject(source, "", context);
|
||||
}
|
||||
|
Reference in New Issue
Block a user