diff options
author | Olivier Goffart <ogoffart@trolltech.com> | 2009-10-07 11:58:02 (GMT) |
---|---|---|
committer | Olivier Goffart <ogoffart@trolltech.com> | 2009-10-07 15:56:43 (GMT) |
commit | db182f75b69cd47ce8abbcc5acb2551306919a05 (patch) | |
tree | 726e5731b1f923cac6527b77c043874b27c256c0 /src/gui/kernel/qguiplatformplugin_p.h | |
parent | 3cad63946965416c89703fbf3d9730e856283c06 (diff) | |
download | Qt-db182f75b69cd47ce8abbcc5acb2551306919a05.zip Qt-db182f75b69cd47ce8abbcc5acb2551306919a05.tar.gz Qt-db182f75b69cd47ce8abbcc5acb2551306919a05.tar.bz2 |
QGuiPlatformPlugin: QFileIconProvider and QIcon backend.
Add a backend for QFileIconProvider in the platform plugin
Also change the QIcon::fromTheme backend in the platform plugin:
On KDE, we unfortunately can't use KIcon as backend, as the current
API doesn't let us know easily (and quickly) wether we should use
the fallback or not (KDE always fallback to the question mark
"unknown" icon)
So we will use the QIconLoader even on KDE.
But we need to make sure that the theme name and the icon search paths
are correct. Ask that to the platform plugin
Reviewed-by: Jens Bache-Wiig
Diffstat (limited to 'src/gui/kernel/qguiplatformplugin_p.h')
-rw-r--r-- | src/gui/kernel/qguiplatformplugin_p.h | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/gui/kernel/qguiplatformplugin_p.h b/src/gui/kernel/qguiplatformplugin_p.h index 57ea8af..f7d4b92 100644 --- a/src/gui/kernel/qguiplatformplugin_p.h +++ b/src/gui/kernel/qguiplatformplugin_p.h @@ -68,6 +68,7 @@ class QPalette; class QIcon; class QFileDialog; class QColorDialog; +class QFileInfo; struct Q_GUI_EXPORT QGuiPlatformPluginInterface : public QFactoryInterface { @@ -89,7 +90,10 @@ class Q_GUI_EXPORT QGuiPlatformPlugin : public QObject, public QGuiPlatformPlugi virtual QString styleName(); virtual QPalette palette(); - virtual QIcon loadIcon(const QString &name); + virtual QString systemIconThemeName(); + virtual QStringList iconThemeSearchPaths(); + virtual QIcon fileSystemIcon(const QFileInfo &); + enum PlatformHint { PH_ToolButtonStyle, PH_ToolBarIconSize }; virtual int platformHint(PlatformHint hint); |