diff options
Diffstat (limited to 'src/plugins/qmldesigner/components/pathtool/pathtool.cpp')
-rw-r--r-- | src/plugins/qmldesigner/components/pathtool/pathtool.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/plugins/qmldesigner/components/pathtool/pathtool.cpp b/src/plugins/qmldesigner/components/pathtool/pathtool.cpp index 258d85a666..7e88114f08 100644 --- a/src/plugins/qmldesigner/components/pathtool/pathtool.cpp +++ b/src/plugins/qmldesigner/components/pathtool/pathtool.cpp @@ -56,7 +56,7 @@ static int pathRankForModelNode(const ModelNode &modelNode) { if (modelNode.metaInfo().hasProperty("path")) { if (modelNode.hasNodeProperty("path")) { ModelNode pathNode = modelNode.nodeProperty("path").modelNode(); - if (pathNode.metaInfo().isSubclassOf("QtQuick.Path") && pathNode.hasNodeListProperty("pathElements")) { + if (pathNode.metaInfo().isQtQuickPath() && pathNode.hasNodeListProperty("pathElements")) { const QList<ModelNode> pathElements = pathNode.nodeListProperty("pathElements") .toModelNodeList(); if (pathElements.isEmpty()) |