WinRT: Split WinRtQtVersion hierarchy

To match the general pattern.

Part of the code duplication can go later.

Change-Id: I42f936bea88b4fc06f839045ba7988745f951ab7
Reviewed-by: Oliver Wolff <oliver.wolff@qt.io>
This commit is contained in:
hjk
2019-02-18 11:27:50 +01:00
parent 06cc09a30f
commit 7f210bb7b2
2 changed files with 18 additions and 1 deletions

View File

@@ -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

View File

@@ -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;