mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-04-07 02:35:33 +08:00
Issue #77 toIcon returns a simple enum instead of a full object
This commit is contained in:
@@ -41,10 +41,10 @@ namespace BlackMisc
|
||||
return !m_downloadUrls.isEmpty();
|
||||
}
|
||||
|
||||
CIcon CDistribution::getRestrictionIcon() const
|
||||
CIcons::IconIndex CDistribution::getRestrictionIcon() const
|
||||
{
|
||||
// StandardIconLockOpen16 is hard to distinguish from closed
|
||||
return CIcon::iconByIndex(m_restricted ? CIcons::StandardIconLockClosed16 : CIcons::StandardIconGlobe16);
|
||||
return m_restricted ? CIcons::StandardIconLockClosed16 : CIcons::StandardIconGlobe16;
|
||||
}
|
||||
|
||||
bool CDistribution::isStabilitySameOrBetter(const CDistribution &otherDistribution) const
|
||||
@@ -74,7 +74,7 @@ namespace BlackMisc
|
||||
this->getFormattedUtcTimestampYmdhms();
|
||||
}
|
||||
|
||||
CIcon CDistribution::toIcon() const
|
||||
CIcons::IconIndex CDistribution::toIcon() const
|
||||
{
|
||||
return this->getRestrictionIcon();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user