forked from qt-creator/qt-creator
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:
@@ -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;
|
||||||
|
|||||||
@@ -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;
|
||||||
|
|||||||
Reference in New Issue
Block a user