Commit eac5a646 authored by Tobias Hunger's avatar Tobias Hunger

Kit: Add copyFrom(otherKit) method

Change-Id: I28d13c2f54aa42dc42bd9bd5fcae8f8ac0430d0b
Reviewed-by: default avatarDaniel Teske <daniel.teske@digia.com>
parent 7aaaf072
......@@ -135,6 +135,17 @@ Kit *Kit::clone(bool keepName) const
return k;
}
void Kit::copyFrom(const Kit *k)
{
d->m_data = k->d->m_data;
d->m_iconPath = k->d->m_iconPath;
d->m_icon = k->d->m_icon;
d->m_autodetected = k->d->m_autodetected;
d->m_isValid = k->d->m_isValid;
d->m_displayName = k->d->m_displayName;
kitUpdated();
}
bool Kit::isValid() const
{
return d->m_id.isValid() && d->m_isValid;
......
......@@ -85,6 +85,7 @@ public:
QString toHtml();
Kit *clone(bool keepName = false) const;
void copyFrom(const Kit *k);
private:
// Unimplemented.
......
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