diff --git a/src/plugins/qmldesigner/components/propertyeditor/gradientmodel.cpp b/src/plugins/qmldesigner/components/propertyeditor/gradientmodel.cpp index b2e25fa6d66..31cce3dc313 100644 --- a/src/plugins/qmldesigner/components/propertyeditor/gradientmodel.cpp +++ b/src/plugins/qmldesigner/components/propertyeditor/gradientmodel.cpp @@ -322,7 +322,7 @@ void GradientModel::setAnchorBackend(const QVariant &anchorBackend) m_itemNode = backendCasted->getItemNode(); if (m_itemNode.isValid() - && m_itemNode.modelNode().hasProperty(gradientPropertyName().toUtf8())) + && m_itemNode.modelNode().hasNodeProperty(gradientPropertyName().toUtf8())) m_gradientTypeName = m_itemNode.modelNode().nodeProperty(gradientPropertyName().toUtf8()).modelNode().simplifiedTypeName(); setupModel();