forked from qt-creator/qt-creator
QmlDesigner.NodeInstances: Create a component with a file path
We used a url but anyway this is not necessary anymore. Change-Id: Ia616fca573f941dd638141a05c0c36640fed90e9 Reviewed-by: Thomas Hartmann <Thomas.Hartmann@digia.com>
This commit is contained in:
@@ -913,7 +913,7 @@ static inline QString fixComponentPathForIncompatibleQt(const QString &component
|
||||
|
||||
QObject *ObjectNodeInstance::createComponent(const QString &componentPath, QQmlContext *context)
|
||||
{
|
||||
QQmlComponent component(context->engine(), QUrl::fromLocalFile(fixComponentPathForIncompatibleQt(componentPath)));
|
||||
QQmlComponent component(context->engine(), fixComponentPathForIncompatibleQt(componentPath));
|
||||
QObject *object = component.beginCreate(context);
|
||||
|
||||
tweakObjects(object);
|
||||
|
||||
Reference in New Issue
Block a user