Issue #77 toIcon returns a simple enum instead of a full object

This commit is contained in:
Mat Sutcliffe
2020-10-26 22:55:10 +00:00
parent 59bbac9a1f
commit b1185eb541
61 changed files with 157 additions and 171 deletions

View File

@@ -94,17 +94,17 @@ namespace BlackMisc
return QStringLiteral("{ %1, %2, %3, %4 }").arg(this->getApplicationAsString(), m_exePath, m_version, m_process.convertToQString(i18n));
}
CIcon CApplicationInfo::toIcon() const
CIcons::IconIndex CApplicationInfo::toIcon() const
{
switch (getApplication())
{
case Laucher: return CIconList::allIcons().findByIndex(CIcons::SwiftLauncher16);
case PilotClientCore: return CIconList::allIcons().findByIndex(CIcons::SwiftCore16);
case PilotClientGui: return CIconList::allIcons().findByIndex(CIcons::Swift16);
case MappingTool: return CIconList::allIcons().findByIndex(CIcons::SwiftDatabase16);
case Laucher: return CIcons::SwiftLauncher16;
case PilotClientCore: return CIcons::SwiftCore16;
case PilotClientGui: return CIcons::Swift16;
case MappingTool: return CIcons::SwiftDatabase16;
default: break;
}
return CIconList::allIcons().findByIndex(CIcons::StandardIconUnknown16);
return CIcons::StandardIconUnknown16;
}
CVariant CApplicationInfo::propertyByIndex(const CPropertyIndex &index) const