From 70b8e7a07b29774c98ec66e7942948bff360fed3 Mon Sep 17 00:00:00 2001 From: wmayer Date: Wed, 7 Feb 2024 13:08:19 +0100 Subject: [PATCH] Gui: Give property editors an object name This allows it to easily find the widgets with Qt's findChild() method --- src/Gui/PropertyView.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/Gui/PropertyView.cpp b/src/Gui/PropertyView.cpp index 535f54fa2c..d69de96b37 100644 --- a/src/Gui/PropertyView.cpp +++ b/src/Gui/PropertyView.cpp @@ -84,11 +84,13 @@ PropertyView::PropertyView(QWidget *parent) pLayout->addWidget(tabs, 0, 0); propertyEditorView = new Gui::PropertyEditor::PropertyEditor(); + propertyEditorView->setObjectName(QStringLiteral("propertyEditorView")); propertyEditorView->setAutomaticDocumentUpdate(_GetParam()->GetBool("AutoTransactionView", false)); propertyEditorView->setAutomaticExpand(_GetParam()->GetBool("AutoExpandView", false)); tabs->addTab(propertyEditorView, tr("View")); propertyEditorData = new Gui::PropertyEditor::PropertyEditor(); + propertyEditorData->setObjectName(QStringLiteral("propertyEditorData")); propertyEditorData->setAutomaticDocumentUpdate(_GetParam()->GetBool("AutoTransactionData", true)); propertyEditorData->setAutomaticExpand(_GetParam()->GetBool("AutoExpandData", false)); tabs->addTab(propertyEditorData, tr("Data"));