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:
@@ -19,6 +19,7 @@
|
||||
#include <projectexplorer/kit.h>
|
||||
#include <projectexplorer/project.h>
|
||||
#include <projectexplorer/projectexplorerconstants.h>
|
||||
#include <projectexplorer/runcontrol.h>
|
||||
#include <projectexplorer/target.h>
|
||||
|
||||
#include <qmlprojectmanager/qmlprojectconstants.h>
|
||||
@@ -489,13 +490,22 @@ bool AndroidQmlPreviewWorker::stopPreviewApp()
|
||||
|
||||
// AndroidQmlPreviewWorkerFactory
|
||||
|
||||
AndroidQmlPreviewWorkerFactory::AndroidQmlPreviewWorkerFactory()
|
||||
class AndroidQmlPreviewWorkerFactory final : public RunWorkerFactory
|
||||
{
|
||||
setProduct<AndroidQmlPreviewWorker>();
|
||||
addSupportedRunMode(ProjectExplorer::Constants::QML_PREVIEW_RUN_MODE);
|
||||
addSupportedRunConfig("QmlProjectManager.QmlRunConfiguration.Qml");
|
||||
addSupportedRunConfig(Constants::ANDROID_RUNCONFIG_ID);
|
||||
addSupportedDeviceType(Android::Constants::ANDROID_DEVICE_TYPE);
|
||||
public:
|
||||
AndroidQmlPreviewWorkerFactory()
|
||||
{
|
||||
setProduct<AndroidQmlPreviewWorker>();
|
||||
addSupportedRunMode(ProjectExplorer::Constants::QML_PREVIEW_RUN_MODE);
|
||||
addSupportedRunConfig("QmlProjectManager.QmlRunConfiguration.Qml");
|
||||
addSupportedRunConfig(Constants::ANDROID_RUNCONFIG_ID);
|
||||
addSupportedDeviceType(Android::Constants::ANDROID_DEVICE_TYPE);
|
||||
}
|
||||
};
|
||||
|
||||
void setupAndroidQmlPreviewWorker()
|
||||
{
|
||||
static AndroidQmlPreviewWorkerFactory theAndroidQmlPreviewWorkerFactory;
|
||||
}
|
||||
|
||||
} // Android::Internal
|
||||
|
||||
Reference in New Issue
Block a user