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>
This commit is contained in:
Christian Kandeler
2020-09-08 16:54:11 +02:00
parent dd105095e9
commit 90a18fe7fa
2 changed files with 6 additions and 1 deletions

View File

@@ -155,6 +155,11 @@ void ToolChain::setDisplayName(const QString &name)
toolChainUpdated(); toolChainUpdated();
} }
bool ToolChain::isAutoDetected() const
{
return detection() == AutoDetection || detection() == AutoDetectionFromSdk;
}
ToolChain::Detection ToolChain::detection() const ToolChain::Detection ToolChain::detection() const
{ {
return d->m_detection; return d->m_detection;

View File

@@ -99,7 +99,7 @@ public:
QString displayName() const; QString displayName() const;
void setDisplayName(const QString &name); void setDisplayName(const QString &name);
inline bool isAutoDetected() const { return detection() != ManualDetection; } bool isAutoDetected() const;
Detection detection() const; Detection detection() const;
QByteArray id() const; QByteArray id() const;