mirror of
https://github.com/keepassxreboot/keepassxc.git
synced 2025-11-25 17:16:33 -05:00
Implement KDBX 4.1 extended custom icons
This commit is contained in:
parent
70e62d90db
commit
390e14b2c6
17 changed files with 137 additions and 48 deletions
|
|
@ -222,7 +222,7 @@ QPixmap Icons::customIconPixmap(const Database* db, const QUuid& uuid, IconSize
|
|||
return {};
|
||||
}
|
||||
// Generate QIcon with pre-baked resolutions
|
||||
auto icon = QImage::fromData(db->metadata()->customIcon(uuid));
|
||||
auto icon = QImage::fromData(db->metadata()->customIcon(uuid).data);
|
||||
auto basePixmap = QPixmap::fromImage(icon.scaled(64, 64, Qt::IgnoreAspectRatio, Qt::SmoothTransformation));
|
||||
return QIcon(basePixmap).pixmap(databaseIcons()->iconSize(size));
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue