mirror of
https://github.com/xiaoyifang/goldendict-ng.git
synced 2024-11-23 20:14:05 +00:00
optimize: add specific icon for wiktionary
This commit is contained in:
parent
c35a97b88f
commit
a9a457cc00
BIN
icons/wiktionary.png
Normal file
BIN
icons/wiktionary.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 15 KiB |
10
mediawiki.cc
10
mediawiki.cc
|
@ -63,8 +63,7 @@ public:
|
|||
unsigned long maxResults ) ;
|
||||
|
||||
virtual sptr< DataRequest > getArticle( wstring const &, vector< wstring > const & alts,
|
||||
wstring const &, bool )
|
||||
;
|
||||
wstring const &, bool );
|
||||
|
||||
virtual quint32 getLangFrom() const
|
||||
{ return langId; }
|
||||
|
@ -90,7 +89,12 @@ void MediaWikiDictionary::loadIcon() throw()
|
|||
loadIconFromFile( fInfo.absoluteFilePath(), true );
|
||||
}
|
||||
if( dictionaryIcon.isNull() )
|
||||
dictionaryIcon = dictionaryNativeIcon = QIcon(":/icons/icon32_wiki.png");
|
||||
{
|
||||
if( url.contains( "tionary" ) )
|
||||
dictionaryIcon = dictionaryNativeIcon = QIcon( ":/icons/wiktionary.png" );
|
||||
else
|
||||
dictionaryIcon = dictionaryNativeIcon = QIcon( ":/icons/icon32_wiki.png" );
|
||||
}
|
||||
dictionaryIconLoaded = true;
|
||||
}
|
||||
|
||||
|
|
|
@ -18,6 +18,7 @@
|
|||
<file>icons/icon32_dictd.png</file>
|
||||
<file>icons/icon32_hunspell.png</file>
|
||||
<file>icons/icon32_wiki.png</file>
|
||||
<file>icons/wiktionary.png</file>
|
||||
<file>qt-style-st-lingvo.css</file>
|
||||
<file>article-style-st-lingvo.css</file>
|
||||
<file>icons/icon_dsl_native.png</file>
|
||||
|
|
Loading…
Reference in a new issue