Kit: Replace operator ==

Change-Id: I4f211e118bc5cb58a7adf1f6d814105905f964f8
Reviewed-by: Daniel Teske <daniel.teske@digia.com>
This commit is contained in:
Tobias Hunger
2012-10-11 12:00:11 +02:00
parent 7a37897f79
commit 7aaaf07259
2 changed files with 14 additions and 6 deletions

View File

@@ -280,6 +280,18 @@ void Kit::removeKey(const Core::Id &key)
kitUpdated();
}
bool Kit::isDataEqual(const Kit *other) const
{
return d->m_data == other->d->m_data;
}
bool Kit::isEqual(const Kit *other) const
{
return isDataEqual(other)
&& d->m_iconPath == other->d->m_iconPath
&& d->m_displayName == other->d->m_displayName;
}
QVariantMap Kit::toMap() const
{
QVariantMap data;
@@ -296,11 +308,6 @@ QVariantMap Kit::toMap() const
return data;
}
bool Kit::operator==(const Kit &other) const
{
return d->m_data == other.d->m_data;
}
void Kit::addToEnvironment(Utils::Environment &env) const
{
QList<KitInformation *> infoList = KitManager::instance()->kitInformation();