KIcon
KIcon Class Reference
#include <kicon.h>
Inheritance diagram for KIcon:

Public Member Functions | |
KIcon () | |
KIcon (const QIcon ©) | |
KIcon (const QString &iconName) | |
KIcon (const QString &iconName, KIconLoader *iconLoader) | |
KIcon (const QString &iconName, KIconLoader *iconLoader, const QStringList &overlays) | |
~KIcon () | |
![]() | |
QIcon (const QIcon &other) | |
QIcon (const QPixmap &pixmap) | |
QIcon (const QString &fileName) | |
QIcon (QIcon &&other) | |
QIcon (QIconEngine *engine) | |
QSize | actualSize (const QSize &size, QIcon::Mode mode, QIcon::State state) const const |
QSize | actualSize (QWindow *window, const QSize &size, QIcon::Mode mode, QIcon::State state) const const |
void | addFile (const QString &fileName, const QSize &size, QIcon::Mode mode, QIcon::State state) |
void | addPixmap (const QPixmap &pixmap, QIcon::Mode mode, QIcon::State state) |
QList< QSize > | availableSizes (QIcon::Mode mode, QIcon::State state) const const |
qint64 | cacheKey () const const |
bool | isMask () const const |
bool | isNull () const const |
QString | name () const const |
QVariant | operator QVariant () const const |
QDataStream & | operator<< (QDataStream &stream, const QIcon &icon) |
QIcon & | operator= (const QIcon &other) |
QIcon & | operator= (QIcon &&other) |
QDataStream & | operator>> (QDataStream &stream, QIcon &icon) |
void | paint (QPainter *painter, const QRect &rect, Qt::Alignment alignment, QIcon::Mode mode, QIcon::State state) const const |
void | paint (QPainter *painter, int x, int y, int w, int h, Qt::Alignment alignment, QIcon::Mode mode, QIcon::State state) const const |
QPixmap | pixmap (const QSize &size, QIcon::Mode mode, QIcon::State state) const const |
QPixmap | pixmap (int extent, QIcon::Mode mode, QIcon::State state) const const |
QPixmap | pixmap (int w, int h, QIcon::Mode mode, QIcon::State state) const const |
QPixmap | pixmap (QWindow *window, const QSize &size, QIcon::Mode mode, QIcon::State state) const const |
int | serialNumber () const const |
void | setIsMask (bool isMask) |
void | swap (QIcon &other) |
Additional Inherited Members | |
![]() | |
enum | Mode |
enum | State |
![]() | |
QStringList | fallbackSearchPaths () |
QString | fallbackThemeName () |
QIcon | fromTheme (const QString &name) |
QIcon | fromTheme (const QString &name, const QIcon &fallback) |
bool | hasThemeIcon (const QString &name) |
void | setFallbackSearchPaths (const QStringList &paths) |
void | setFallbackThemeName (const QString &name) |
void | setThemeName (const QString &name) |
void | setThemeSearchPaths (const QStringList &paths) |
QString | themeName () |
QStringList | themeSearchPaths () |
![]() | |
Active | |
Disabled | |
Normal | |
Off | |
On | |
Selected | |
Detailed Description
A wrapper around QIcon that provides KDE icon features.
KIcon is a convenience class for creating a QIcon with an appropriate KIconEngine to perform loading and rendering. KIcons thus adhere to KDE style and effect standards.
- See also
- KIconEngine, KIconLoader, KIconTheme
Constructor & Destructor Documentation
◆ KIcon() [1/5]
|
explicit |
Constructor which takes a kde style icon name, and optionally a custom icon loader.
- Parameters
-
iconName The name of the kde icon to load iconLoader The icon loader to use in loading this icon, or null to use the default global icon loader. overlays A list of overlays to apply to this icon. They are loaded from the emblems icons and up to four (one per corner) is currently supported
◆ KIcon() [2/5]
|
explicit |
◆ KIcon() [3/5]
|
explicit |
◆ KIcon() [4/5]
|
explicit |
◆ KIcon() [5/5]
◆ ~KIcon()
The documentation for this class was generated from the following files:
This file is part of the KDE documentation.
Documentation copyright © 1996-2023 The KDE developers.
Generated on Mon Jan 30 2023 04:01:50 by doxygen 1.8.17 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2023 The KDE developers.
Generated on Mon Jan 30 2023 04:01:50 by doxygen 1.8.17 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.