Search for usage in LXR

KQuickIconProvider Class Reference

#include <kquickiconprovider.h>

Inheritance diagram for KQuickIconProvider:

Public Member Functions

QPixmap requestPixmap (const QString &id, QSize *size, const QSize &requestedSize) override
- Public Member Functions inherited from QQuickImageProvider
 QQuickImageProvider (QQmlImageProviderBase::ImageType type, QQmlImageProviderBase::Flags flags)
virtual QQmlImageProviderBase::Flags flags () const const override
virtual QQmlImageProviderBase::ImageType imageType () const const override
virtual QImage requestImage (const QString &id, QSize *size, const QSize &requestedSize)
virtual QQuickTextureFactoryrequestTexture (const QString &id, QSize *size, const QSize &requestedSize)

Additional Inherited Members

- Public Types inherited from QQmlImageProviderBase
enum  Flag
enum  ImageType
- Public Attributes inherited from QQmlImageProviderBase
typedef Flags

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);

Definition at line 27 of file kquickiconprovider.h.

The documentation for this class was generated from the following file:
Class which exposes the KIcon* functioality to QML.
This file is part of the KDE documentation.
Documentation copyright © 1996-2023 The KDE developers.
Generated on Tue Dec 5 2023 04:00:29 by doxygen 1.8.17 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.