Fixes: Improved file icons

Details:
This patch makes use of system icons as a base
and draws overlay on top. This should blend a bit better
into the native icon theme.
This commit is contained in:
Jens Bache-Wiig
2009-01-27 12:40:49 +01:00
parent ccfbdf5b1b
commit 629a4778a2
12 changed files with 44 additions and 16 deletions

View File

@@ -40,6 +40,7 @@
#include <QtCore/QPair>
#include <QtGui/QFileIconProvider>
#include <QtGui/QIcon>
#include <QtGui/QStyle>
namespace Core {
@@ -48,7 +49,8 @@ public:
~FileIconProvider(); // used to clear the cache
QIcon icon(const QFileInfo &fileInfo);
void registerIconForSuffix(const QIcon &icon, const QString &suffix);
QPixmap overlayIcon(QStyle::StandardPixmap baseIcon, const QIcon &overlayIcon, const QSize &size) const;
void registerIconOverlayForSuffix(const QIcon &icon, const QString &suffix);
static FileIconProvider *instance();