diff options
author | Christian Kandeler <christian.kandeler@qt.io> | 2019-03-14 18:07:56 +0100 |
---|---|---|
committer | Christian Kandeler <christian.kandeler@qt.io> | 2019-03-19 17:19:38 +0000 |
commit | e94f5b496ecd9ca212009bd24368265e1df8199b (patch) | |
tree | d0f9f9351153e93ff9ab9f9c04fc1aea64965d42 /src/plugins/projectexplorer/kitmanager.h | |
parent | a2c7257c9b24103b1f6c05b96c8a2d67a8d1404a (diff) |
Improve kit auto-detection
The old code was too simplistic: Basically, we just took a random
toolchain, slapped a random Qt onto it and made that the default kit.
Instead, we now go through all toolchains, try to find a matching Qt
version, debugger etc and create a kit for that combination unless there
is a better one.
Fixes: QTCREATORBUG-22138
Change-Id: Ib57ca4453a93ee9253c75398328c3bca33087dc6
Reviewed-by: hjk <hjk@qt.io>
Diffstat (limited to 'src/plugins/projectexplorer/kitmanager.h')
-rw-r--r-- | src/plugins/projectexplorer/kitmanager.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/plugins/projectexplorer/kitmanager.h b/src/plugins/projectexplorer/kitmanager.h index 0a1fc213a1..8fb2f26164 100644 --- a/src/plugins/projectexplorer/kitmanager.h +++ b/src/plugins/projectexplorer/kitmanager.h @@ -88,6 +88,8 @@ public: // called on initial setup of a kit. virtual void setup(Kit *) { return; } + virtual int weight(const Kit *k) const; + virtual ItemList toUserOutput(const Kit *) const = 0; virtual KitAspectWidget *createConfigWidget(Kit *) const = 0; |