mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-04-02 06:35:52 +08:00
refs #314, new icons for formatters
* Moved methods to cpp file (less recompilation) * Background of icons can be changed * refs #322, changed to index based approach for retrieving icons (faster) * therfore: sorted icons per name, easier to keep in sync
This commit is contained in:
@@ -30,8 +30,9 @@ namespace BlackMisc
|
||||
/*
|
||||
* Convert to string
|
||||
*/
|
||||
QString CVoiceCapabilities::convertToQString(bool /** i18n **/) const
|
||||
QString CVoiceCapabilities::convertToQString(bool i18n) const
|
||||
{
|
||||
Q_UNUSED(i18n);
|
||||
switch (this->m_voiceCapabilities)
|
||||
{
|
||||
case Voice:
|
||||
@@ -126,13 +127,13 @@ namespace BlackMisc
|
||||
switch (this->m_voiceCapabilities)
|
||||
{
|
||||
case Voice:
|
||||
return CIconList::iconForIndex(CIcons::NetworkCapabilityVoice);
|
||||
return CIconList::iconForIndex(CIcons::NetworkCapabilityVoiceBackground);
|
||||
case TextOnly:
|
||||
return CIconList::iconForIndex(CIcons::NetworkCapabilityTextOnly);
|
||||
case Unknown:
|
||||
return CIconList::iconForIndex(CIcons::NetworkCapabilityUnknown);
|
||||
case VoiceReceivingOnly:
|
||||
return CIconList::iconForIndex(CIcons::NetworkCapabilityVoiceReceiveOnly);
|
||||
return CIconList::iconForIndex(CIcons::NetworkCapabilityVoiceReceiveOnlyBackground);
|
||||
default:
|
||||
break;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user