diff options
author | Christian Kandeler <christian.kandeler@qt.io> | 2020-09-08 16:54:11 +0200 |
---|---|---|
committer | Christian Kandeler <christian.kandeler@qt.io> | 2020-09-09 08:30:17 +0000 |
commit | 90a18fe7fa94c8c98cff86c957aa96c8c8c414a8 (patch) | |
tree | 54d163b57903ba25ce9f9568861305bbd9624cb9 | |
parent | dd105095e93837448df5d39b735778be7e107a20 (diff) |
ProjectExplorer: Fix ToolChain::isAutoDetected()
Amends d116559cd8.
Fixes: QTCREATORBUG-24545
Change-Id: I3a6c198a6ef2db91c4c3eb75721657e0c491e665
Reviewed-by: hjk <hjk@qt.io>
Reviewed-by: Orgad Shaneh <orgads@gmail.com>
-rw-r--r-- | src/plugins/projectexplorer/toolchain.cpp | 5 | ||||
-rw-r--r-- | src/plugins/projectexplorer/toolchain.h | 2 |
2 files changed, 6 insertions, 1 deletions
diff --git a/src/plugins/projectexplorer/toolchain.cpp b/src/plugins/projectexplorer/toolchain.cpp index 54bf8bf40a..b344f32562 100644 --- a/src/plugins/projectexplorer/toolchain.cpp +++ b/src/plugins/projectexplorer/toolchain.cpp @@ -155,6 +155,11 @@ void ToolChain::setDisplayName(const QString &name) toolChainUpdated(); } +bool ToolChain::isAutoDetected() const +{ + return detection() == AutoDetection || detection() == AutoDetectionFromSdk; +} + ToolChain::Detection ToolChain::detection() const { return d->m_detection; diff --git a/src/plugins/projectexplorer/toolchain.h b/src/plugins/projectexplorer/toolchain.h index e4ca6f9dde..c1befe69b6 100644 --- a/src/plugins/projectexplorer/toolchain.h +++ b/src/plugins/projectexplorer/toolchain.h @@ -99,7 +99,7 @@ public: QString displayName() const; void setDisplayName(const QString &name); - inline bool isAutoDetected() const { return detection() != ManualDetection; } + bool isAutoDetected() const; Detection detection() const; QByteArray id() const; |