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
@@ -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();