diff options
Diffstat (limited to 'src/plugins/winrt')
-rw-r--r-- | src/plugins/winrt/winrtphoneqtversion.cpp | 14 | ||||
-rw-r--r-- | src/plugins/winrt/winrtphoneqtversion.h | 5 |
2 files changed, 18 insertions, 1 deletions
diff --git a/src/plugins/winrt/winrtphoneqtversion.cpp b/src/plugins/winrt/winrtphoneqtversion.cpp index aec898b965b..bf0446c61ce 100644 --- a/src/plugins/winrt/winrtphoneqtversion.cpp +++ b/src/plugins/winrt/winrtphoneqtversion.cpp @@ -55,6 +55,20 @@ QSet<Core::Id> WinRtPhoneQtVersion::targetDeviceTypes() const return {Constants::WINRT_DEVICE_TYPE_PHONE, Constants::WINRT_DEVICE_TYPE_EMULATOR}; } +QSet<Core::Id> WinRtPhoneQtVersion::availableFeatures() const +{ + QSet<Core::Id> features = QtSupport::BaseQtVersion::availableFeatures(); + features.insert(QtSupport::Constants::FEATURE_MOBILE); + features.remove(QtSupport::Constants::FEATURE_QT_CONSOLE); + features.remove(Core::Id::versionedId(QtSupport::Constants::FEATURE_QT_QUICK_CONTROLS_PREFIX, 1)); + features.remove(QtSupport::Constants::FEATURE_QT_WEBKIT); + return features; +} + +QList<ProjectExplorer::Abi> WinRtPhoneQtVersion::detectQtAbis() const +{ + return qtAbisFromLibrary(qtCorePaths()); +} // Factory diff --git a/src/plugins/winrt/winrtphoneqtversion.h b/src/plugins/winrt/winrtphoneqtversion.h index 95dddce37f7..1a643d9f19f 100644 --- a/src/plugins/winrt/winrtphoneqtversion.h +++ b/src/plugins/winrt/winrtphoneqtversion.h @@ -30,12 +30,15 @@ namespace WinRt { namespace Internal { -class WinRtPhoneQtVersion : public WinRtQtVersion +class WinRtPhoneQtVersion : public QtSupport::BaseQtVersion { Q_DECLARE_TR_FUNCTIONS(WinRt::Internal::WinRtQtVersion) public: WinRtPhoneQtVersion() = default; + QSet<Core::Id> availableFeatures() const override; + QList<ProjectExplorer::Abi> detectQtAbis() const override; + QString description() const override; BaseQtVersion *clone() const override; QString type() const override; |