diff options
-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; |