diff options
author | Fawzi Mohamed <[email protected]> | 2014-11-12 19:41:59 +0100 |
---|---|---|
committer | Fawzi Mohamed <[email protected]> | 2014-11-25 17:36:58 +0100 |
commit | e757643690b61f7377329fd363b2f1dd1e4f7505 (patch) | |
tree | b7305f0b12934c9bcca8f91d07c28ab39714df65 /src/plugins/ios/iosrunconfiguration.h | |
parent | a3c9104e35789a0148d11889b898464d7403f047 (diff) |
iOS: fix simulator selection
get simulator type and SDK version dynamically from the available ones,
and let the user choose which one to use.
This fixes the static solution that did break with Xcode 6
Change-Id: I5cb2be68b9ea8736fc880cf3dd9d39d77f030293
Reviewed-by: Fawzi Mohamed <[email protected]>
Diffstat (limited to 'src/plugins/ios/iosrunconfiguration.h')
-rw-r--r-- | src/plugins/ios/iosrunconfiguration.h | 17 |
1 files changed, 4 insertions, 13 deletions
diff --git a/src/plugins/ios/iosrunconfiguration.h b/src/plugins/ios/iosrunconfiguration.h index 23f63b0e6d2..2790dd6c55f 100644 --- a/src/plugins/ios/iosrunconfiguration.h +++ b/src/plugins/ios/iosrunconfiguration.h @@ -32,6 +32,7 @@ #include "iosconstants.h" #include "iosconfigurations.h" +#include "iossimulator.h" #include <projectexplorer/runconfiguration.h> #include <utils/fileutils.h> @@ -43,16 +44,6 @@ class QmakeProFileNode; namespace Ios { namespace Internal { -enum { nSimulatedDevices = 4 }; -static const IosDeviceType::Enum simulatedDevices[nSimulatedDevices] = { - // skip iPhone as it does not support iOS7 - // TODO: clean solution would be to check also sdk version or make it configurable - IosDeviceType::SimulatedIphoneRetina3_5Inch, - IosDeviceType::SimulatedIphoneRetina4Inch, - IosDeviceType::SimulatedIpad, - IosDeviceType::SimulatedIpadRetina -}; - class IosDeployStep; class IosRunConfigurationFactory; class IosRunConfigurationWidget; @@ -76,8 +67,8 @@ public: Utils::FileName localExecutable() const; bool isEnabled() const; QString disabledReason() const; - IosDeviceType::Enum deviceType() const; - void setDeviceType(IosDeviceType::Enum deviceType); + IosDeviceType deviceType() const; + void setDeviceType(const IosDeviceType &deviceType); bool fromMap(const QVariantMap &map) Q_DECL_OVERRIDE; QVariantMap toMap() const Q_DECL_OVERRIDE; @@ -102,7 +93,7 @@ private: bool m_lastIsEnabled; bool m_parseInProgress; bool m_parseSuccess; - IosDeviceType::Enum m_deviceType; + IosDeviceType m_deviceType; }; } // namespace Internal |