bool ToolChain::operator == (const ToolChain &tc) const { if (this == &tc) return true; const QString thisId = id().left(id().indexOf(QLatin1Char(':'))); const QString tcId = tc.id().left(tc.id().indexOf(QLatin1Char(':'))); // We ignore displayname return thisId == tcId && isAutoDetected() == tc.isAutoDetected(); }
ToolChain::ToolChain(const ToolChain &other) : d(new Internal::ToolChainPrivate(other.id(), false)) { // leave the autodetection bit at false. d->m_displayName = QCoreApplication::translate("ProjectExplorer::ToolChain", "Clone of %1") .arg(other.displayName()); }
bool ToolChain::operator == (const ToolChain &tc) const { if (this == &tc) return true; return id() == tc.id(); }
Qt4BuildConfiguration::LastKitState::LastKitState(Kit *k) : m_qtVersion(QtKitInformation::qtVersionId(k)), m_sysroot(SysRootKitInformation::sysRoot(k).toString()), m_mkspec(QmakeKitInformation::mkspec(k).toString()) { ToolChain *tc = ToolChainKitInformation::toolChain(k); m_toolchain = tc ? tc->id() : QString(); }