KDEUI
KIcon Class Reference
#include <kicon.h>
Inheritance diagram for KIcon:
Public Member Functions | |
| KIcon (const QString &iconName, KIconLoader *iconLoader, const QStringList &overlays) | |
| KIcon (const QString &iconName, KIconLoader *iconLoader) | |
| KIcon (const QString &iconName) | |
| KIcon (const QIcon ©) | |
| KIcon () | |
| ~KIcon () | |
| KIcon & | operator= (const KIcon &other) |
Public Member Functions inherited from QIcon | |
| QIcon () | |
| QIcon (const QPixmap &pixmap) | |
| QIcon (const QString &fileName) | |
| QIcon (QIconEngine *engine) | |
| QIcon (const QIcon &other) | |
| QIcon (QIconEngineV2 *engine) | |
| ~QIcon () | |
| QSize | actualSize (const QSize &size, Mode mode, State state) const |
| void | addFile (const QString &fileName, const QSize &size, Mode mode, State state) |
| void | addPixmap (const QPixmap &pixmap, Mode mode, State state) |
| QList< QSize > | availableSizes (Mode mode, State state) const |
| qint64 | cacheKey () const |
| bool | isNull () const |
| QString | name () const |
| operator QVariant () const | |
| QIcon & | operator= (const QIcon &other) |
| void | paint (QPainter *painter, const QRect &rect, QFlags< Qt::AlignmentFlag > alignment, Mode mode, State state) const |
| void | paint (QPainter *painter, int x, int y, int w, int h, QFlags< Qt::AlignmentFlag > alignment, Mode mode, State state) const |
| QPixmap | pixmap () const |
| QPixmap | pixmap (Size size, Mode mode, State state) const |
| QPixmap | pixmap (const QSize &size, Mode mode, State state) const |
| QPixmap | pixmap (int extent, Mode mode, State state) const |
| QPixmap | pixmap (int w, int h, Mode mode, State state) const |
| QPixmap | pixmap (Size size, bool enabled, State state) const |
| void | reset (const QPixmap &pixmap, Size size) |
| int | serialNumber () const |
| void | setPixmap (const QString &fileName, Size size, Mode mode, State state) |
| void | setPixmap (const QPixmap &pixmap, Size size, Mode mode, State state) |
| void | swap (QIcon &other) |
Additional Inherited Members | |
Static Public Member Functions inherited from QIcon | |
| QIcon | fromTheme (const QString &name, const QIcon &fallback) |
| bool | hasThemeIcon (const QString &name) |
| QSize | pixmapSize (Size which) |
| void | setPixmapSize (Size which, const QSize &size) |
| void | setThemeName (const QString &name) |
| void | setThemeSearchPaths (const QStringList &paths) |
| QString | themeName () |
| QStringList | themeSearchPaths () |
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
|
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
|
explicit |
|
explicit |
|
explicit |
Member Function Documentation
The documentation for this class was generated from the following files:
This file is part of the KDE documentation.
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:24:02 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:24:02 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.
KDE API Reference
Public Member Functions inherited from