McuSupport: use a dedicated class to create flash run worker

Change-Id: I26a403755f2ae57a43bbac2439359831a8d59431
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
This commit is contained in:
hjk
2023-01-06 14:39:43 +01:00
parent 22da0f2fd6
commit 3171064ee2
3 changed files with 19 additions and 18 deletions

View File

@@ -53,9 +53,7 @@ class McuSupportPluginPrivate
public:
McuSupportDeviceFactory deviceFactory;
McuSupportRunConfigurationFactory runConfigurationFactory;
RunWorkerFactory runWorkerFactory{makeFlashAndRunWorker(),
{ProjectExplorer::Constants::NORMAL_RUN_MODE},
{Constants::RUNCONFIGURATION}};
FlashRunWorkerFactory flashRunWorkerFactory;
SettingsHandler::Ptr m_settingsHandler{new SettingsHandler};
McuSupportOptions m_options{m_settingsHandler};
McuSupportOptionsPage optionsPage{m_options, m_settingsHandler};