path: root/src/gui/kernel/qplatformtheme.h
diff options
authorKevin Ottens <>2013-02-01 08:15:50 +0100
committerThe Qt Project <>2013-02-19 10:35:06 +0100
commitfc6b21436347f21c8a228bb0e256d946936095a2 (patch)
tree0669123527b1bd229498b5a8854871a958229d67 /src/gui/kernel/qplatformtheme.h
parent388f4f16b03949bbfc6bc8b18491ab16a43c484d (diff)
Let QPlatformTheme decide which engine QIcon::fromTheme uses
By default we still use QIconLoaderEngine but now platform theme plugins have the opportunity to override that. It is in particular planned to be used in a WIP platform theme plugin for KDE sessions. Change-Id: I07a82dc91daea44709b3a790f3f6e2a7a090d108 Reviewed-by: Olivier Goffart <> Reviewed-by: Friedemann Kleint <> Reviewed-by: David Faure (KDE) <> Reviewed-by: Samuel Rødal <> Reviewed-by: Frederik Gladhorn <>
Diffstat (limited to 'src/gui/kernel/qplatformtheme.h')
1 files changed, 3 insertions, 0 deletions
diff --git a/src/gui/kernel/qplatformtheme.h b/src/gui/kernel/qplatformtheme.h
index 14e2dac19d..0e95321102 100644
--- a/src/gui/kernel/qplatformtheme.h
+++ b/src/gui/kernel/qplatformtheme.h
@@ -55,6 +55,7 @@
+class QIconEngine;
class QMenu;
class QMenuBar;
class QPlatformMenuItem;
@@ -270,6 +271,8 @@ public:
virtual QPixmap standardPixmap(StandardPixmap sp, const QSizeF &size) const;
virtual QPixmap fileIconPixmap(const QFileInfo &fileInfo, const QSizeF &size) const;
+ virtual QIconEngine *createIconEngine(const QString &iconName) const;
static QVariant defaultThemeHint(ThemeHint hint);