Ios: Use aspects more directly in IosRunConfiguration

Change-Id: Ic6fd16287e28a16c231b0b30211f112aceb11795
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
This commit is contained in:
hjk
2023-07-14 12:31:52 +02:00
parent c558896594
commit 5af88f5702
2 changed files with 15 additions and 16 deletions

View File

@@ -8,6 +8,7 @@
#include "iossimulator.h"
#include <projectexplorer/runconfiguration.h>
#include <projectexplorer/runconfigurationaspects.h>
#include <utils/fileutils.h>
@@ -23,7 +24,8 @@ class IosDeviceTypeAspect : public Utils::BaseAspect
Q_OBJECT
public:
explicit IosDeviceTypeAspect(IosRunConfiguration *runConfiguration);
explicit IosDeviceTypeAspect(Utils::AspectContainer *container,
IosRunConfiguration *runConfiguration);
void fromMap(const QVariantMap &map) override;
void toMap(QVariantMap &map) const override;
@@ -74,7 +76,9 @@ public:
private:
bool isEnabled() const final;
IosDeviceTypeAspect *m_deviceTypeAspect = nullptr;
ProjectExplorer::ExecutableAspect executable{this};
ProjectExplorer::ArgumentsAspect arguments{this};
IosDeviceTypeAspect iosDeviceType;
};
class IosRunConfigurationFactory : public ProjectExplorer::RunConfigurationFactory