gico icon size change from 16x16 to 64x64

This commit is contained in:
Xiao YiFang 2022-10-06 11:27:47 +08:00
parent 0ce1ff8566
commit 2c9fdd5227

View file

@ -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() );