forked from qt-creator/qt-creator
QmakePM: Avoid multiple loads of the same standard icon
Loading a standard icon is expensive. Change-Id: Ic6bae20c9d0bdcb07fda48309bebcc3a959bc031 Reviewed-by: Eike Ziller <eike.ziller@theqtcompany.com>
This commit is contained in:
committed by
Orgad Shaneh
parent
f900b4e1ba
commit
925492a1b3
@@ -43,6 +43,7 @@ CORE_EXPORT QIcon icon(const QFileInfo &info);
|
||||
CORE_EXPORT QIcon icon(QFileIconProvider::IconType type);
|
||||
|
||||
// Register additional overlay icons
|
||||
CORE_EXPORT QPixmap overlayIcon(const QPixmap &baseIcon, const QIcon &overlayIcon);
|
||||
CORE_EXPORT QPixmap overlayIcon(QStyle::StandardPixmap baseIcon, const QIcon &overlayIcon, const QSize &size);
|
||||
CORE_EXPORT void registerIconOverlayForSuffix(const char *path, const char *suffix);
|
||||
CORE_EXPORT void registerIconOverlayForMimeType(const char *path, const char *mimeType);
|
||||
|
||||
Reference in New Issue
Block a user