KIconThemes 5.109.0
Public Member Functions | List of all members
KQuickIconProvider

Class which exposes the KIcon* functioality to QML. More...

#include <kquickiconprovider.h>

Public Member Functions

QPixmap requestPixmap (const QString &id, QSize *size, const QSize &requestedSize) override
 

Detailed Description

Class which exposes the KIcon* functioality to QML.

For dependency reasons, this is a header-only class.

This needs to be registered in the engine using the following code:

engine->addImageProvider(QStringLiteral("icon"), new KQuickIconProvider);
Class which exposes the KIcon* functioality to QML.
Definition kquickiconprovider.h:28
Since
5.98