mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-04-06 01:45:38 +08:00
Issue #77 toIcon returns a simple enum instead of a full object
This commit is contained in:
@@ -64,18 +64,18 @@ namespace BlackMisc
|
||||
return this->convertToQString(true);
|
||||
}
|
||||
|
||||
CIcon CPlatform::toIcon() const
|
||||
CIcons::IconIndex CPlatform::toIcon() const
|
||||
{
|
||||
if (this->getPlatform() == All) { return CIcon::iconByIndex(CIcons::OSAll); }
|
||||
if (this->getPlatform() == All) { return CIcons::OSAll; }
|
||||
switch (this->getPlatformFlag())
|
||||
{
|
||||
case Win32:
|
||||
case Win64: return CIcon::iconByIndex(CIcons::OSWindows);
|
||||
case Linux: return CIcon::iconByIndex(CIcons::OSLinux);
|
||||
case MacOS: return CIcon::iconByIndex(CIcons::OSMacOs);
|
||||
case Win64: return CIcons::OSWindows;
|
||||
case Linux: return CIcons::OSLinux;
|
||||
case MacOS: return CIcons::OSMacOs;
|
||||
default: break;
|
||||
}
|
||||
return CIcon::iconByIndex(CIcons::StandardIconEmpty);
|
||||
return CIcons::StandardIconEmpty;
|
||||
}
|
||||
|
||||
QString CPlatform::convertToQString(bool i18n) const
|
||||
|
||||
Reference in New Issue
Block a user