diff options
author | Thomas Hartmann <thomas.hartmann@qt.io> | 2019-09-05 15:24:51 +0200 |
---|---|---|
committer | Thomas Hartmann <thomas.hartmann@qt.io> | 2019-09-05 15:03:34 +0000 |
commit | 6e6ee2e9cb7b8fdec8ebfeec90f3bf02b92ffbab (patch) | |
tree | 739ff18bef8312b1007e75cb30d67a39861a74ec /src/plugins/qmldesigner/components/propertyeditor/fileresourcesmodel.cpp | |
parent | 9ca9a7e4a6c46ca83c3ed1eb878b620398e15770 (diff) |
QmlDesigner: Use QmlObjectNode in QmlModelNodeProxyqds/v1.3.0
Selected nodes in the property editor do not have to be items.
Change-Id: I0d4fff7f3069640ceb1c17f3d755abb340575667
Reviewed-by: Henning Gründl <henning.gruendl@qt.io>
Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
Diffstat (limited to 'src/plugins/qmldesigner/components/propertyeditor/fileresourcesmodel.cpp')
-rw-r--r-- | src/plugins/qmldesigner/components/propertyeditor/fileresourcesmodel.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/plugins/qmldesigner/components/propertyeditor/fileresourcesmodel.cpp b/src/plugins/qmldesigner/components/propertyeditor/fileresourcesmodel.cpp index 0b5f79a39e7..63f17f284a7 100644 --- a/src/plugins/qmldesigner/components/propertyeditor/fileresourcesmodel.cpp +++ b/src/plugins/qmldesigner/components/propertyeditor/fileresourcesmodel.cpp @@ -49,7 +49,7 @@ void FileResourcesModel::setModelNodeBackend(const QVariant &modelNodeBackend) qobject_cast<const QmlDesigner::QmlModelNodeProxy *>(modelNodeBackendObject); if (backendObjectCasted) - m_path = backendObjectCasted->qmlItemNode().modelNode().model()->fileUrl(); + m_path = backendObjectCasted->qmlObjectNode().modelNode().model()->fileUrl(); setupModel(); emit modelNodeBackendChanged(); |