mirror of
https://github.com/keepassxreboot/keepassxc.git
synced 2026-11-21 01:21:37 -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
@@ -109,7 +109,7 @@ QVariant GroupModel::data(const QModelIndex& index, int role) const
|
||||
return group->name();
|
||||
}
|
||||
else if (role == Qt::DecorationRole) {
|
||||
return group->icon();
|
||||
return group->iconPixmap();
|
||||
}
|
||||
else {
|
||||
return QVariant();
|
||||
|
||||
Reference in new issue
Block a user