forked from qt-creator/qt-creator
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:
@@ -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
|
||||
|
||||
|
@@ -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;
|
||||
|
Reference in New Issue
Block a user