aboutsummaryrefslogtreecommitdiffstats
path: root/src/plugins/projectexplorer/kitmanager.h
diff options
context:
space:
mode:
authorEike Ziller <eike.ziller@qt.io>2016-07-20 16:24:32 +0200
committerEike Ziller <eike.ziller@qt.io>2016-07-20 14:41:32 +0000
commit013cb53aef6594de9f16597a3b9ff907667903d4 (patch)
tree456853e749bf4449b3fbe5b07fe055787a25976d /src/plugins/projectexplorer/kitmanager.h
parent3353029b52c4c636cea80e843cda59f4aa3b592f (diff)
Kits: Make upgrade of settings explicit when restoring kits
Instead of implicit upgrading when KitInformation reads values from the kit. Also fixes that upgrading from 4.1 to 4.2 did not work (it did not upgrade at all after 93c919a9ed3e52bcd2d3072a2b771bda0f2de21f and before that wrote the settings with the wrong key for Cxx). Change-Id: I0729df6eb1215f2ea01651a42a83cb4d2679b347 Reviewed-by: Tobias Hunger <tobias.hunger@qt.io>
Diffstat (limited to 'src/plugins/projectexplorer/kitmanager.h')
-rw-r--r--src/plugins/projectexplorer/kitmanager.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/plugins/projectexplorer/kitmanager.h b/src/plugins/projectexplorer/kitmanager.h
index a34f567cf3..e47acd6e41 100644
--- a/src/plugins/projectexplorer/kitmanager.h
+++ b/src/plugins/projectexplorer/kitmanager.h
@@ -75,6 +75,8 @@ public:
// called to find issues with the kit
virtual QList<Task> validate(const Kit *) const = 0;
+ // called after restoring a kit, so upgrading of kit information settings can be done
+ virtual void upgrade(Kit *) { return; }
// called to fix issues with this kitinformation. Does not modify the rest of the kit.
virtual void fix(Kit *) { return; }
// called on initial setup of a kit.