From 378d8137978cb26b77cadd517989c002378f1181 Mon Sep 17 00:00:00 2001 From: Christian Stenger Date: Wed, 5 Oct 2022 14:00:49 +0200 Subject: [PATCH] Core: Restore object name for dialog MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit And adapt usage inside tests. Amends f5c725cf23a06730a16f22a896b57cef947c64b4. Change-Id: I8f1e47ea206e34a242988373fa569d547d8d637d Reviewed-by: Robert Löhning --- src/plugins/coreplugin/dialogs/newdialogwidget.cpp | 1 + tests/system/objects.map | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/src/plugins/coreplugin/dialogs/newdialogwidget.cpp b/src/plugins/coreplugin/dialogs/newdialogwidget.cpp index 962255eb379..634a36128d2 100644 --- a/src/plugins/coreplugin/dialogs/newdialogwidget.cpp +++ b/src/plugins/coreplugin/dialogs/newdialogwidget.cpp @@ -167,6 +167,7 @@ NewDialogWidget::NewDialogWidget(QWidget *parent) , m_templateDescription(new QTextBrowser) { + setObjectName("Core.NewDialog"); setAttribute(Qt::WA_DeleteOnClose); ICore::registerWindow(this, Context("Core.NewDialog")); resize(880, 520); diff --git a/tests/system/objects.map b/tests/system/objects.map index 7922cacca2c..5fbccd28b03 100644 --- a/tests/system/objects.map +++ b/tests/system/objects.map @@ -95,7 +95,7 @@ :New.comboBox_QComboBox {name='comboBox' type='QComboBox' visible='1' window=':New_Core::Internal::NewDialog'} :New.frame_QFrame {name='frame' type='QFrame' visible='1' window=':New_Core::Internal::NewDialog'} :New.templateCategoryView_QTreeView {name='templateCategoryView' type='QTreeView' visible='1' window=':New_Core::Internal::NewDialog'} -:New_Core::Internal::NewDialog {name='Core__Internal__NewDialog' type='Core::Internal::NewDialogWidget' visible='1' windowTitle?='New*'} +:New_Core::Internal::NewDialog {name='Core.NewDialog' type='Core::Internal::NewDialogWidget' visible='1' windowTitle?='New*'} :New_ProjectExplorer::JsonWizard {type='ProjectExplorer::JsonWizard' unnamed='1' visible='1'} :Next_QPushButton {text~='(Next.*|Continue)' type='QPushButton' visible='1'} :No valid kits found._QLabel {text?='*No suitable kits found.*' type='QLabel' unnamed='1' visible='1' window=':Qt Creator_Core::Internal::MainWindow'}