Commit 7aaaf072 authored by Tobias Hunger's avatar Tobias Hunger

Kit: Replace operator ==

Change-Id: I4f211e118bc5cb58a7adf1f6d814105905f964f8
Reviewed-by: default avatarDaniel Teske <daniel.teske@digia.com>
parent 7a37897f
......@@ -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();
......
......@@ -78,7 +78,8 @@ public:
void setValue(const Core::Id &key, const QVariant &value);
void removeKey(const Core::Id &key);
bool operator==(const Kit &other) const;
bool isDataEqual(const Kit *other) const;
bool isEqual(const Kit *other) const;
void addToEnvironment(Utils::Environment &env) const;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment