KIconThemes
kicontheme.h
44 explicit KIconTheme(const QString &name, const QString &appName = QString(), const QString &basePathHint = QString());
142 QStringList queryIconsByContext(int size, KIconLoader::Context context = KIconLoader::Any) const;
169 QString iconPath(const QString &name, int size, KIconLoader::MatchType match, qreal scale) const;
199 QString iconPathByName(const QString &name, int size, KIconLoader::MatchType match, qreal scale) const;
static QStringList list()
List all icon themes installed on the system, global and local.
Definition kicontheme.cpp:692
QList< int > querySizes(KIconLoader::Group group) const
Query available sizes for a group.
Definition kicontheme.cpp:540
QString iconPathByName(const QString &name, int size, KIconLoader::MatchType match) const
Lookup an icon in the theme.
Definition kicontheme.cpp:614
QString internalName() const
The internal name of the icon theme (same as the name argument passed to the constructor).
Definition kicontheme.cpp:486
static void forceThemeForTests(const QString &themeName)
Force a current theme and disable automatic resolution of the current theme in favor of the forced th...
Definition kicontheme.cpp:685
KIconTheme(const QString &name, const QString &appName=QString(), const QString &basePathHint=QString())
Load an icon theme by name.
Definition kicontheme.cpp:342
QStringList queryIconsByContext(int size, KIconLoader::Context context=KIconLoader::Any) const
Query available icons for a context and preferred size.
Definition kicontheme.cpp:575
bool followsColorScheme() const
If true, this theme is made of SVG icons that will be colorized following the system color scheme.
Definition kicontheme.cpp:630
bool hasContext(KIconLoader::Context context) const
Returns true if the theme has any icons for the given context.
Definition kicontheme.cpp:603
QString iconPath(const QString &name, int size, KIconLoader::MatchType match) const
Lookup an icon in the theme.
Definition kicontheme.cpp:635
static void initTheme()
Enforces the Breeze icon theme (including our KIconEngine for re-coloring).
Definition kicontheme.cpp:56
QStringList queryIcons(int size, KIconLoader::Context context=KIconLoader::Any) const
Query available icons for a size and context.
Definition kicontheme.cpp:554
int defaultSize(KIconLoader::Group group) const
The default size of this theme for a certain icon group.
Definition kicontheme.cpp:531
This file is part of the KDE documentation.
Documentation copyright © 1996-2025 The KDE developers.
Generated on Fri Jan 24 2025 11:56:51 by doxygen 1.13.2 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2025 The KDE developers.
Generated on Fri Jan 24 2025 11:56:51 by doxygen 1.13.2 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.