diff options
author | hjk <hjk@qt.io> | 2020-06-26 13:59:38 +0200 |
---|---|---|
committer | hjk <hjk@qt.io> | 2020-07-06 06:07:13 +0000 |
commit | 430a33dcd9ac80ddb848e41f8f059102857c88aa (patch) | |
tree | 9af1619701306a6bad6a06645091f2d3b2838e9c /src/plugins/projectexplorer/kit.h | |
parent | 492439262079dcf1d5c503208b905be8c82a694b (diff) | |
download | qt-creator-430a33dcd9ac80ddb848e41f8f059102857c88aa.tar.gz |
Core/Utils: Migrate further to Utils::Id
The coreplugin/id.h header is kept for downstream for now.
Change-Id: I8c44590f7b988b3770ecdc177c40783e12353e66
Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
Diffstat (limited to 'src/plugins/projectexplorer/kit.h')
-rw-r--r-- | src/plugins/projectexplorer/kit.h | 38 |
1 files changed, 19 insertions, 19 deletions
diff --git a/src/plugins/projectexplorer/kit.h b/src/plugins/projectexplorer/kit.h index 871e226568..24d16b3ed9 100644 --- a/src/plugins/projectexplorer/kit.h +++ b/src/plugins/projectexplorer/kit.h @@ -61,7 +61,7 @@ public: using Predicate = std::function<bool(const Kit *)>; static Predicate defaultPredicate(); - explicit Kit(Core::Id id = Core::Id()); + explicit Kit(Utils::Id id = Utils::Id()); explicit Kit(const QVariantMap &data); ~Kit(); @@ -89,7 +89,7 @@ public: bool isAutoDetected() const; QString autoDetectionSource() const; bool isSdkProvided() const; - Core::Id id() const; + Utils::Id id() const; // The higher the weight, the more aspects have sensible values for this kit. // For instance, a kit where a matching debugger was found for the toolchain will have a @@ -101,16 +101,16 @@ public: QIcon displayIcon() const; // Error or warning or device icon. Utils::FilePath iconPath() const; void setIconPath(const Utils::FilePath &path); - void setDeviceTypeForIcon(Core::Id deviceType); + void setDeviceTypeForIcon(Utils::Id deviceType); - QList<Core::Id> allKeys() const; - QVariant value(Core::Id key, const QVariant &unset = QVariant()) const; - bool hasValue(Core::Id key) const; - void setValue(Core::Id key, const QVariant &value); - void setValueSilently(Core::Id key, const QVariant &value); - void removeKey(Core::Id key); - void removeKeySilently(Core::Id key); - bool isSticky(Core::Id id) const; + QList<Utils::Id> allKeys() const; + QVariant value(Utils::Id key, const QVariant &unset = QVariant()) const; + bool hasValue(Utils::Id key) const; + void setValue(Utils::Id key, const QVariant &value); + void setValueSilently(Utils::Id key, const QVariant &value); + void removeKey(Utils::Id key); + void removeKeySilently(Utils::Id key); + bool isSticky(Utils::Id id) const; bool isDataEqual(const Kit *other) const; bool isEqual(const Kit *other) const; @@ -126,18 +126,18 @@ public: void setAutoDetected(bool detected); void setAutoDetectionSource(const QString &autoDetectionSource); void makeSticky(); - void setSticky(Core::Id id, bool b); + void setSticky(Utils::Id id, bool b); void makeUnSticky(); - void setMutable(Core::Id id, bool b); - bool isMutable(Core::Id id) const; + void setMutable(Utils::Id id, bool b); + bool isMutable(Utils::Id id) const; - void setIrrelevantAspects(const QSet<Core::Id> &irrelevant); - QSet<Core::Id> irrelevantAspects() const; + void setIrrelevantAspects(const QSet<Utils::Id> &irrelevant); + QSet<Utils::Id> irrelevantAspects() const; - QSet<Core::Id> supportedPlatforms() const; - QSet<Core::Id> availableFeatures() const; - bool hasFeatures(const QSet<Core::Id> &features) const; + QSet<Utils::Id> supportedPlatforms() const; + QSet<Utils::Id> availableFeatures() const; + bool hasFeatures(const QSet<Utils::Id> &features) const; Utils::MacroExpander *macroExpander() const; QString newKitName(const QList<Kit *> &allKits) const; |