mirror of
https://github.com/xiaoyifang/goldendict-ng.git
synced 2024-11-27 15:24:05 +00:00
delete LangCoder::icon which is wrong in concept
This commit is contained in:
parent
3c2e36d040
commit
08d31614ed
|
@ -215,16 +215,6 @@ bool LangCoder::code2Exists( const QString & _code )
|
|||
return LANG_CODE_MAP.contains( _code );
|
||||
}
|
||||
|
||||
QIcon LangCoder::icon( quint32 _code )
|
||||
{
|
||||
if ( auto code = intToCode2( _code ); code2Exists( code ) ) {
|
||||
const GDLangCode & lc = LANG_CODE_MAP[ code ];
|
||||
return QIcon( ":/flags/" + QString( lc.code2 ) + ".png" );
|
||||
}
|
||||
|
||||
return {};
|
||||
}
|
||||
|
||||
QString LangCoder::intToCode2( quint32 val )
|
||||
{
|
||||
if ( !val || val == 0xFFffFFff )
|
||||
|
|
|
@ -47,8 +47,6 @@ public:
|
|||
|
||||
/// Returns decoded name of language or empty string if not found.
|
||||
static QString decode( quint32 _code );
|
||||
/// Returns icon for language or empty string if not found.
|
||||
static QIcon icon( quint32 code );
|
||||
|
||||
/// Return true for RTL languages
|
||||
static bool isLanguageRTL( quint32 code );
|
||||
|
|
Loading…
Reference in a new issue