aboutsummaryrefslogtreecommitdiffstats
path: root/src/plugins/qmldesigner/components/propertyeditor/propertyeditorqmlbackend.h
diff options
context:
space:
mode:
authorTim Jenssen <tim.jenssen@qt.io>2024-04-24 17:37:48 +0200
committerTim Jenssen <tim.jenssen@qt.io>2024-04-24 17:37:48 +0200
commit72f82f420a908e543728aa87bc8fc47135fc81b4 (patch)
tree771d9e85638fb208b9a38d39b7086000fa3657f9 /src/plugins/qmldesigner/components/propertyeditor/propertyeditorqmlbackend.h
parentfa54261ad383c55d0b2eeb00a7d09e3ed54b15e1 (diff)
parentfb4e1c5a8e96a876d5abf3b01a4841033da5078d (diff)
Merge remote-tracking branch 'origin/qds/dev'
Diffstat (limited to 'src/plugins/qmldesigner/components/propertyeditor/propertyeditorqmlbackend.h')
-rw-r--r--src/plugins/qmldesigner/components/propertyeditor/propertyeditorqmlbackend.h9
1 files changed, 7 insertions, 2 deletions
diff --git a/src/plugins/qmldesigner/components/propertyeditor/propertyeditorqmlbackend.h b/src/plugins/qmldesigner/components/propertyeditor/propertyeditorqmlbackend.h
index d4e158fca4..120b7b4abc 100644
--- a/src/plugins/qmldesigner/components/propertyeditor/propertyeditorqmlbackend.h
+++ b/src/plugins/qmldesigner/components/propertyeditor/propertyeditorqmlbackend.h
@@ -10,6 +10,8 @@
#include "qmlmodelnodeproxy.h"
#include "quick2propertyeditorview.h"
+#include <utils/uniqueobjectptr.h>
+
#include <nodemetainfo.h>
#include <QQmlPropertyMap>
@@ -100,10 +102,13 @@ private:
static TypeName fixTypeNameForPanes(const TypeName &typeName);
private:
- Quick2PropertyEditorView *m_view;
+ // to avoid a crash while destructing DesignerPropertyMap in the QQmlData
+ // this needs be destructed after m_quickWidget->engine() is destructed
+ DesignerPropertyMap m_backendValuesPropertyMap;
+
+ Utils::UniqueObjectPtr<Quick2PropertyEditorView> m_view = nullptr;
QmlAnchorBindingProxy m_backendAnchorBinding;
QmlModelNodeProxy m_backendModelNode;
- DesignerPropertyMap m_backendValuesPropertyMap;
QScopedPointer<PropertyEditorTransaction> m_propertyEditorTransaction;
QScopedPointer<PropertyEditorValue> m_dummyPropertyEditorValue;
QScopedPointer<PropertyEditorContextObject> m_contextObject;