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:
Felix Geyer committed 2012-01-01 21:52:54 +01:00
1 parent fdf600e09a
commit 00aafa69f5
15 files changed
+137 -60

No files matched your search

+1 -1
View File
@@ -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();