forked from qt-creator/qt-creator
Android: Use new setup for a few factories
Change-Id: I4538a2839b995f7bc245ae1a91f1979cc8c0dfdc Reviewed-by: Jarek Kobus <jaroslaw.kobus@qt.io>
This commit is contained in:
@@ -200,11 +200,20 @@ void AndroidDebugSupport::stop()
|
||||
|
||||
// AndroidDebugWorkerFactory
|
||||
|
||||
AndroidDebugWorkerFactory::AndroidDebugWorkerFactory()
|
||||
class AndroidDebugWorkerFactory final : public RunWorkerFactory
|
||||
{
|
||||
setProduct<AndroidDebugSupport>();
|
||||
addSupportedRunMode(ProjectExplorer::Constants::DEBUG_RUN_MODE);
|
||||
addSupportedRunConfig(Constants::ANDROID_RUNCONFIG_ID);
|
||||
public:
|
||||
AndroidDebugWorkerFactory()
|
||||
{
|
||||
setProduct<AndroidDebugSupport>();
|
||||
addSupportedRunMode(ProjectExplorer::Constants::DEBUG_RUN_MODE);
|
||||
addSupportedRunConfig(Constants::ANDROID_RUNCONFIG_ID);
|
||||
}
|
||||
};
|
||||
|
||||
void setupAndroidDebugWorker()
|
||||
{
|
||||
static AndroidDebugWorkerFactory theAndroidDebugWorkerFactory;
|
||||
}
|
||||
|
||||
} // Android::Internal
|
||||
|
||||
Reference in New Issue
Block a user