diff options
author | Thomas Hartmann <thomas.hartmann@qt.io> | 2022-03-22 18:03:21 +0100 |
---|---|---|
committer | Thomas Hartmann <thomas.hartmann@qt.io> | 2022-03-23 08:50:24 +0000 |
commit | 6662e138d7f7425339a5e7346425a116e5aa933f (patch) | |
tree | a7d71eaee90b5cb64ea443fad029ddeb09cb5637 | |
parent | 4ed637d8da4170a62184428a56675c7551cdfecc (diff) | |
download | qt-creator-6662e138d7f7425339a5e7346425a116e5aa933f.tar.gz |
QmlDesigner: Remove finishedNotify
It is not used anymore.
Change-Id: I706a973c55c22211457bac01534a5e7b59a40b25
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
Reviewed-by: Mahmoud Badri <mahmoud.badri@qt.io>
-rw-r--r-- | src/plugins/qmldesigner/components/propertyeditor/propertyeditorview.cpp | 11 |
1 files changed, 1 insertions, 10 deletions
diff --git a/src/plugins/qmldesigner/components/propertyeditor/propertyeditorview.cpp b/src/plugins/qmldesigner/components/propertyeditor/propertyeditorview.cpp index fb5d0c6861..75681f6468 100644 --- a/src/plugins/qmldesigner/components/propertyeditor/propertyeditorview.cpp +++ b/src/plugins/qmldesigner/components/propertyeditor/propertyeditorview.cpp @@ -119,18 +119,13 @@ void PropertyEditorView::setupPane(const TypeName &typeName) if (!qmlBackend) { qmlBackend = new PropertyEditorQmlBackend(this); - qmlBackend->context()->setContextProperty("finishedNotify", QVariant(false) ); qmlBackend->initialSetup(typeName, qmlSpecificsFile, this); qmlBackend->setSource(qmlFile); - qmlBackend->context()->setContextProperty("finishedNotify", QVariant(true) ); m_stackedWidget->addWidget(qmlBackend->widget()); m_qmlBackendHash.insert(qmlFile.toString(), qmlBackend); } else { - qmlBackend->context()->setContextProperty("finishedNotify", QVariant(false) ); - qmlBackend->initialSetup(typeName, qmlSpecificsFile, this); - qmlBackend->context()->setContextProperty("finishedNotify", QVariant(true) ); } } @@ -499,14 +494,13 @@ void PropertyEditorView::setupQmlBackend() } else { qmlObjectNode.reset(new QmlObjectNode); } - currentQmlBackend->context()->setContextProperty("finishedNotify", QVariant(false)); + if (specificQmlData.isEmpty()) currentQmlBackend->contextObject()->setSpecificQmlData(specificQmlData); currentQmlBackend->contextObject()->setGlobalBaseUrl(qmlFile); currentQmlBackend->contextObject()->setSpecificQmlData(specificQmlData); currentQmlBackend->setSource(qmlFile); - currentQmlBackend->context()->setContextProperty("finishedNotify", QVariant(true)); } else { QScopedPointer<QmlObjectNode> qmlObjectNode; if (m_selectedNode.isValid()) @@ -514,7 +508,6 @@ void PropertyEditorView::setupQmlBackend() else qmlObjectNode.reset(new QmlObjectNode); - currentQmlBackend->context()->setContextProperty("finishedNotify", QVariant(false)); if (specificQmlData.isEmpty()) currentQmlBackend->contextObject()->setSpecificQmlData(specificQmlData); currentQmlBackend->setup(*qmlObjectNode, currentStateName, qmlSpecificsFile, this); @@ -524,8 +517,6 @@ void PropertyEditorView::setupQmlBackend() m_stackedWidget->setCurrentWidget(currentQmlBackend->widget()); - currentQmlBackend->context()->setContextProperty("finishedNotify", QVariant(true)); - currentQmlBackend->contextObject()->triggerSelectionChanged(); m_qmlBackEndForCurrentType = currentQmlBackend; |