forked from qt-creator/qt-creator
WebAssembly: use a dedicated class to create EmrunRunWorker
Change-Id: Idbeece82d8b59f02148207b0459a76aae162bb51 Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
This commit is contained in:
@@ -25,8 +25,7 @@ using namespace Core;
|
||||
using namespace ProjectExplorer;
|
||||
using namespace Utils;
|
||||
|
||||
namespace WebAssembly {
|
||||
namespace Internal {
|
||||
namespace WebAssembly::Internal {
|
||||
|
||||
class WebAssemblyPluginPrivate
|
||||
{
|
||||
@@ -35,11 +34,7 @@ public:
|
||||
WebAssemblyDeviceFactory deviceFactory;
|
||||
WebAssemblyQtVersionFactory qtVersionFactory;
|
||||
EmrunRunConfigurationFactory emrunRunConfigurationFactory;
|
||||
RunWorkerFactory emrunRunWorkerFactory{
|
||||
makeEmrunWorker(),
|
||||
{ProjectExplorer::Constants::NORMAL_RUN_MODE},
|
||||
{Constants::WEBASSEMBLY_RUNCONFIGURATION_EMRUN}
|
||||
};
|
||||
EmrunRunWorkerFactory emrunRunWorkerFactory;
|
||||
WebAssemblyOptionsPage optionsPage;
|
||||
};
|
||||
|
||||
@@ -94,5 +89,4 @@ void WebAssemblyPlugin::askUserAboutEmSdkSetup()
|
||||
ICore::infoBar()->addInfo(info);
|
||||
}
|
||||
|
||||
} // namespace Internal
|
||||
} // namespace WebAssembly
|
||||
} // WebAssembly::Internal
|
||||
|
||||
Reference in New Issue
Block a user