summaryrefslogtreecommitdiff
path: root/src/plugins/projectexplorer/kit.h
diff options
context:
space:
mode:
authorTobias Hunger <tobias.hunger@digia.com>2013-05-06 17:11:33 +0200
committerTobias Hunger <tobias.hunger@digia.com>2013-05-07 16:39:29 +0200
commit1ca9bab2426b00e86fa71a0e7f53c801723ad325 (patch)
tree88b05140bf25bc053d51381d1f389a339c6c45b6 /src/plugins/projectexplorer/kit.h
parent0ef3acc9f29ce1855dbd9cda09f195001b8f4953 (diff)
downloadqt-creator-1ca9bab2426b00e86fa71a0e7f53c801723ad325.tar.gz
Kit: Only make SDK-set KitInformation read-only
Leave the rest user-editable. Task-number: QTCREATORBUG-9030 Change-Id: I77c9ff980dd9a497bff53ee04dae7e771e4e7e82 Reviewed-by: Daniel Teske <daniel.teske@digia.com>
Diffstat (limited to 'src/plugins/projectexplorer/kit.h')
-rw-r--r--src/plugins/projectexplorer/kit.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/plugins/projectexplorer/kit.h b/src/plugins/projectexplorer/kit.h
index c32baadfa6..0b1e292158 100644
--- a/src/plugins/projectexplorer/kit.h
+++ b/src/plugins/projectexplorer/kit.h
@@ -87,6 +87,7 @@ public:
bool hasValue(Core::Id key) const;
void setValue(Core::Id key, const QVariant &value);
void removeKey(Core::Id key);
+ bool isSticky(Core::Id id) const;
bool isDataEqual(const Kit *other) const;
bool isEqual(const Kit *other) const;
@@ -99,8 +100,12 @@ public:
void copyFrom(const Kit *k);
void setAutoDetected(bool detected);
+
private:
void setSdkProvided(bool sdkProvided);
+ void makeSticky();
+ void makeSticky(Core::Id id);
+
~Kit();
// Unimplemented.
@@ -115,6 +120,7 @@ private:
Internal::KitPrivate *d;
+ friend class KitInformation;
friend class KitManager;
friend class Internal::KitModel; // needed for setAutoDetected() when cloning kits
};