mirror of
https://github.com/keepassxreboot/keepassxc.git
synced 2025-07-25 07:45:22 -04:00
Scale new custom icons down to 64x64 if they are larger.
This commit is contained in:
parent
940a5026c1
commit
3ab1072e9e
3 changed files with 18 additions and 1 deletions
|
@ -132,7 +132,7 @@ void EditWidgetIcons::addCustomIcon()
|
|||
QImage image(filename);
|
||||
if (!image.isNull()) {
|
||||
Uuid uuid = Uuid::random();
|
||||
m_database->metadata()->addCustomIcon(uuid, image.scaled(16, 16));
|
||||
m_database->metadata()->addCustomIconScaled(uuid, image);
|
||||
m_customIconModel->setIcons(m_database->metadata()->customIcons(),
|
||||
m_database->metadata()->customIconsOrder());
|
||||
QModelIndex index = m_customIconModel->indexFromUuid(uuid);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue