From 81f846ce1c83aa81dd00b1d8c85ca5508f0b5c78 Mon Sep 17 00:00:00 2001 From: Marco Bubke Date: Mon, 21 Oct 2024 18:24:07 +0200 Subject: [PATCH] QmlDesigner: Remove rewriter usage The rewriter is only exported for internal purposes. Change-Id: Idf2d2851cae53786dfde6bd1a28a5547d7c12b3e Reviewed-by: Mahmoud Badri --- .../effectcomposer/effectcomposercontextobject.cpp | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/plugins/effectcomposer/effectcomposercontextobject.cpp b/src/plugins/effectcomposer/effectcomposercontextobject.cpp index 95ebe7a3670..68053055b30 100644 --- a/src/plugins/effectcomposer/effectcomposercontextobject.cpp +++ b/src/plugins/effectcomposer/effectcomposercontextobject.cpp @@ -168,11 +168,11 @@ int EffectComposerContextObject::devicePixelRatio() QStringList EffectComposerContextObject::allStatesForId(const QString &id) { - if (m_model && m_model->rewriterView()) { - const QmlDesigner::QmlObjectNode node = m_model->rewriterView()->modelNodeForId(id); - if (node.isValid()) - return node.allStateNames(); - } + if (m_model) { + const QmlDesigner::QmlObjectNode node = m_model->modelNodeForId(id); + if (node.isValid()) + return node.allStateNames(); + } return {}; }