KIconThemes
kiconloader.h
112 MatchBestOrGreaterSize, ///< Take the best match or the match with a greater size if there is no exact match. @since 6.0
149 SizeSmall = 16,
151 SizeSmallMedium = 22,
153 SizeMedium = 32,
155 SizeLarge = 48,
157 SizeHuge = 64,
159 SizeEnormous = 128,
180 * @param extraSearchPaths additional search paths, either absolute or relative to GenericDataLocation
186 explicit KIconLoader(const QString &appname = QString(), const QStringList &extraSearchPaths = QStringList(), QObject *parent = nullptr);
200 * Adds @p appname to the list of application specific directories with @p themeBaseDir as its base directory.
201 * Assume the icons are in /home/user/app/icons/hicolor/48x48/my_app.png, the base directory would be
205 * @param themeBaseDir The base directory of the application's theme (eg. "/home/user/app/icons")
437 // TODO KF6 merge iconPath() with and without "scale" and move that argument after "group_or_size"
438 QString iconPath(const QString &name, int group_or_size, bool canReturnNull, qreal scale) const;
453 QMovie *loadMovie(const QString &name, KIconLoader::Group group, int size = 0, QObject *parent = nullptr) const;
498 QStringList queryIcons(int group_or_size, KIconLoader::Context context = KIconLoader::Any) const;
511 QStringList queryIconsByContext(int group_or_size, KIconLoader::Context context = KIconLoader::Any) const;
563 * Reconfigure the icon loader, for instance to change the associated app name or extra search paths.
564 * This also clears the in-memory pixmap cache (even if the appname didn't change, which is useful for unittests)
566 * @param extraSearchPaths additional search paths, either absolute or relative to GenericDataLocation
590 void drawOverlays(const QStringList &overlays, QPixmap &pixmap, KIconLoader::Group group, int state = KIconLoader::DefaultState) const;
685KICONTHEMES_EXPORT QIcon icon(const QString &iconName, const KIconColors &colors, KIconLoader *iconLoader = nullptr);
692KICONTHEMES_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:112
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 Sat Dec 21 2024 16:57:01 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2024 The KDE developers.
Generated on Sat Dec 21 2024 16:57:01 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.