Ref T409, mark client as "swift" client

This commit is contained in:
Klaus Basan
2018-10-27 02:02:28 +02:00
parent 4b74267248
commit 53b3241483
6 changed files with 46 additions and 3 deletions

View File

@@ -97,6 +97,14 @@ namespace BlackMisc
if (!modelString.isEmpty()) { this->addCapability(CClient::FsdModelString); }
}
CIcon CClient::toIcon() const
{
if (!m_swift) { return m_user.toIcon(); }
static const CIcon swift = CIconList::allIcons().findByIndex(CIcons::Swift16);
return swift;
}
CVariant CClient::propertyByIndex(const CPropertyIndex &index) const
{
if (index.isMyself()) { return CVariant::from(*this); }