From cf0bc32b2701168fd2a6749605a75676ec62184f Mon Sep 17 00:00:00 2001 From: Felix Geyer Date: Wed, 8 Apr 2015 18:19:50 +0200 Subject: [PATCH] Store icons with a resolution of up to 128x128 px. Follows what KeePass 2.29 will implement. --- src/core/Metadata.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/core/Metadata.cpp b/src/core/Metadata.cpp index 402734c7b..3256ca05e 100644 --- a/src/core/Metadata.cpp +++ b/src/core/Metadata.cpp @@ -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 {