mirror of
https://github.com/keepassxreboot/keepassxc.git
synced 2026-11-30 13:53:01 -08:00
Store database icons as QImage instead of QIcon.
This has the advantage that they can be used without a running X server. Add methods to retrieve QPixmaps that are converted from the stored QImages and cached by QPixmapCache.
This commit is contained in:
1 parent
fdf600e09a
commit
00aafa69f5
15 files changed
+137
-60
No files matched your search
@@ -85,7 +85,7 @@ QVariant EntryModel::data(const QModelIndex& index, int role) const
|
||||
}
|
||||
}
|
||||
else if ((role == Qt::DecorationRole) && (index.column() == 0)) {
|
||||
return entry->icon();
|
||||
return entry->iconPixmap();
|
||||
}
|
||||
|
||||
return QVariant();
|
||||
|
||||
Reference in new issue
Block a user