mirror of
https://github.com/keepassxreboot/keepassxc.git
synced 2025-12-04 15:39:34 +01:00
Removing QWidget dependency from src/core.
This commit is contained in:
@@ -857,13 +857,9 @@ bool KeePass1Reader::parseCustomIcons4(const QByteArray& data)
|
||||
if (static_cast<quint32>(data.size()) < (pos + iconSize)) {
|
||||
return false;
|
||||
}
|
||||
QImage icon = QImage::fromData(data.mid(pos, iconSize));
|
||||
QByteArray icon = data.mid(pos, iconSize);
|
||||
pos += iconSize;
|
||||
|
||||
if (icon.width() != 16 || icon.height() != 16) {
|
||||
icon = icon.scaled(16, 16);
|
||||
}
|
||||
|
||||
QUuid uuid = QUuid::createUuid();
|
||||
iconUuids.append(uuid);
|
||||
m_db->metadata()->addCustomIcon(uuid, icon);
|
||||
|
||||
Reference in New Issue
Block a user