Store icons with a resolution of up to 128x128 px.

Follows what KeePass 2.29 will implement.
This commit is contained in:
Felix Geyer committed 2015-04-08 18:22:13 +02:00
1 parent 93ab7eb058
commit cf0bc32b27
1 file changed
+3 -3
+3 -3
View File
@@ -347,9 +347,9 @@ void Metadata::addCustomIconScaled(const Uuid& uuid, const QImage& icon)
{
QImage iconScaled;
// scale down to 64x64 if icon is larger
if (icon.width() > 64 || icon.height() > 64) {
iconScaled = icon.scaled(QSize(64, 64), Qt::KeepAspectRatio,
// scale down to 128x128 if icon is larger
if (icon.width() > 128 || icon.height() > 128) {
iconScaled = icon.scaled(QSize(128, 128), Qt::KeepAspectRatio,
Qt::SmoothTransformation);
}
else {