aboutsummaryrefslogtreecommitdiffstats
path: root/src/plugins/designer
diff options
context:
space:
mode:
authorhjk <hjk@qt.io>2023-08-17 11:02:25 +0200
committerhjk <hjk@qt.io>2023-08-18 10:17:24 +0000
commitb48e10717f8914710c61491e8edc931f9d43dac2 (patch)
tree6eda1d68b7eafb660274de936e1ec13333f42b09 /src/plugins/designer
parent7b0a3e7e28e5e57682e51fcfb5d0ef61e7e0f6e5 (diff)
ProjectExplorer: Self-register JsonWizardPage related factories
Moves the using code closer to the common factory setup pattern. Change-Id: I2ee85b911d43b63730ff994a4b07568b23b14f00 Reviewed-by: Christian Stenger <christian.stenger@qt.io>
Diffstat (limited to 'src/plugins/designer')
-rw-r--r--src/plugins/designer/formeditorplugin.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/plugins/designer/formeditorplugin.cpp b/src/plugins/designer/formeditorplugin.cpp
index e839ce2b3a2..e997b26b939 100644
--- a/src/plugins/designer/formeditorplugin.cpp
+++ b/src/plugins/designer/formeditorplugin.cpp
@@ -52,6 +52,7 @@ public:
FormEditorFactory formEditorFactory;
SettingsPageProvider settingsPageProvider;
QtDesignerFormClassCodeGenerator formClassCodeGenerator;
+ FormPageFactory formPageFactory;
};
FormEditorPlugin::~FormEditorPlugin()
@@ -99,8 +100,6 @@ bool FormEditorPlugin::initialize([[maybe_unused]] const QStringList &arguments,
});
#endif
- ProjectExplorer::JsonWizardFactory::registerPageFactory(new Internal::FormPageFactory);
-
// Ensure that loading designer translations is done before FormEditorW is instantiated
const QString locale = ICore::userInterfaceLanguage();
if (!locale.isEmpty()) {