Gui: Give property editors an object name
This allows it to easily find the widgets with Qt's findChild() method
This commit is contained in:
@@ -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"));
|
||||
|
||||
Reference in New Issue
Block a user