mirror of
https://github.com/xiaoyifang/goldendict-ng.git
synced 2024-11-27 19:24:08 +00:00
gico icon size change from 16x16 to 64x64
This commit is contained in:
parent
0ce1ff8566
commit
2c9fdd5227
|
@ -335,7 +335,7 @@ sptr< Dictionary::DataRequest > ArticleNetworkAccessManager::getResource(
|
||||||
QByteArray bytes;
|
QByteArray bytes;
|
||||||
QBuffer buffer(&bytes);
|
QBuffer buffer(&bytes);
|
||||||
buffer.open(QIODevice::WriteOnly);
|
buffer.open(QIODevice::WriteOnly);
|
||||||
dictionaries[ x ]->getIcon().pixmap( 16 ).save(&buffer, "PNG");
|
dictionaries[ x ]->getIcon().pixmap( 64 ).save(&buffer, "webp");
|
||||||
buffer.close();
|
buffer.close();
|
||||||
sptr< Dictionary::DataRequestInstant > ico = new Dictionary::DataRequestInstant( true );
|
sptr< Dictionary::DataRequestInstant > ico = new Dictionary::DataRequestInstant( true );
|
||||||
ico->getData().resize( bytes.size() );
|
ico->getData().resize( bytes.size() );
|
||||||
|
|
Loading…
Reference in a new issue