forked from qt-creator/qt-creator
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:
@@ -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();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user