KIconThemes
kiconloader.h
110 MatchBestOrGreaterSize, ///< Take the best match or the match with a greater size if there is no exact match. @since 6.0
147 SizeSmall = 16,
149 SizeSmallMedium = 22,
151 SizeMedium = 32,
153 SizeLarge = 48,
155 SizeHuge = 64,
157 SizeEnormous = 128,
178 * @param extraSearchPaths additional search paths, either absolute or relative to GenericDataLocation
184 explicit KIconLoader(const QString &appname = QString(), const QStringList &extraSearchPaths = QStringList(), QObject *parent = nullptr);
198 * Adds @p appname to the list of application specific directories with @p themeBaseDir as its base directory.
199 * Assume the icons are in /home/user/app/icons/hicolor/48x48/my_app.png, the base directory would be
203 * @param themeBaseDir The base directory of the application's theme (eg. "/home/user/app/icons")
435 // TODO KF6 merge iconPath() with and without "scale" and move that argument after "group_or_size"
436 QString iconPath(const QString &name, int group_or_size, bool canReturnNull, qreal scale) const;
448 QMovie *loadMovie(const QString &name, KIconLoader::Group group, int size = 0, QObject *parent = nullptr) const;
483 QStringList queryIcons(int group_or_size, KIconLoader::Context context = KIconLoader::Any) const;
496 QStringList queryIconsByContext(int group_or_size, KIconLoader::Context context = KIconLoader::Any) const;
543 * Reconfigure the icon loader, for instance to change the associated app name or extra search paths.
544 * This also clears the in-memory pixmap cache (even if the appname didn't change, which is useful for unittests)
546 * @param extraSearchPaths additional search paths, either absolute or relative to GenericDataLocation
567 void drawOverlays(const QStringList &overlays, QPixmap &pixmap, KIconLoader::Group group, int state = KIconLoader::DefaultState) const;
661KICONTHEMES_EXPORT QIcon icon(const QString &iconName, const KIconColors &colors, KIconLoader *iconLoader = nullptr);
668KICONTHEMES_EXPORT QIcon icon(const QString &iconName, const QStringList &overlays, KIconLoader *iconLoader = nullptr);
Sepecifies which colors will be used when recoloring icons as its stylesheet.
Definition kiconcolors.h:31
KICONTHEMES_EXPORT QIcon icon(const QString &iconName, const QStringList &overlays, KIconLoader *iconLoader=nullptr)
Returns a QIcon for the given icon, with additional overlays.
KICONTHEMES_EXPORT QIcon icon(const QString &iconName, KIconLoader *iconLoader=nullptr)
Returns a QIcon with an appropriate KIconEngine to perform loading and rendering.
@ MatchBestOrGreaterSize
Take the best match or the match with a greater size if there is no exact match.
Definition kiconloader.h:110
Definition kicontheme.h:34
Q_ENUM(...)
Q_SLOTSQ_SLOTS
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Sun Feb 25 2024 18:38:13 by doxygen 1.10.0 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2024 The KDE developers.
Generated on Sun Feb 25 2024 18:38:13 by doxygen 1.10.0 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.