KGuiAddons
kiconutils.cpp
30 void addFile(const QString &fileName, const QSize &size, QIcon::Mode mode, QIcon::State state) override;
40KOverlayIconEngine::KOverlayIconEngine(const QIcon &icon, const QIcon &overlay, Qt::Corner position)
47KOverlayIconEngine::KOverlayIconEngine(const QIcon &icon, const QHash<Qt::Corner, QIcon> &overlays)
101void KOverlayIconEngine::addFile(const QString &fileName, const QSize &size, QIcon::Mode mode, QIcon::State state)
121 const QRect logicalRect(0, 0, phyiscalSize.width() / info->scale, phyiscalSize.height() / info->scale);
134void KOverlayIconEngine::paint(QPainter *painter, const QRect &rect, QIcon::Mode mode, QIcon::State state)
142 painter->drawPixmap(QPoint{rect.width() / 2 - pixMiddle.width(), rect.height() / 2 - pixMiddle.height()}, pix);
170 const QPixmap overlayPixmap = i.value().pixmap(QSize{overlaySize, overlaySize}, m_dpr, mode, state);
QIcon addOverlays(const QIcon &icon, const QHash< Qt::Corner, QIcon > &overlays)
Adds overlays over the icon.
Definition kiconutils.cpp:208
QIcon addOverlay(const QIcon &icon, const QIcon &overlay, Qt::Corner position)
Adds the overlay over the icon in the specified position.
Definition kiconutils.cpp:203
Mode
State
QIcon fromTheme(const QString &name)
ScaledPixmapHook
QIconEngine()
virtual void virtual_hook(int id, void *data)
QVersionNumber version()
const_reference at(qsizetype i) const const
qsizetype count() const const
qsizetype size() const const
qreal devicePixelRatioF() const const
void drawPixmap(const QPoint &point, const QPixmap &pixmap)
bool isNull() const const
void setDevicePixelRatio(qreal scaleFactor)
QSize size() const const
int height() const const
QSize size() const const
int width() const const
int height() const const
void scale(const QSize &size, Qt::AspectRatioMode mode)
int width() const const
Corner
transparent
This file is part of the KDE documentation.
Documentation copyright © 1996-2025 The KDE developers.
Generated on Fri Jan 24 2025 11:52:27 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:52:27 by doxygen 1.13.2 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.