mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-04-01 13:36:48 +08:00
Ref T409, mark client as "swift" client
This commit is contained in:
@@ -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); }
|
||||
|
||||
Reference in New Issue
Block a user