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:
Klaus Basan
2014-09-01 13:24:17 +02:00
parent a6ebfc0e0b
commit c54fa0fd43
7 changed files with 451 additions and 250 deletions

View File

@@ -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;
}