AvatarImageProvider

Search for usage in LXR

AvatarImageProvider Class Reference

#include <avatarimageprovider.h>

Inheritance diagram for AvatarImageProvider:

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
 
 ForceAsynchronousImageLoading
 
 Image
 
 ImageResponse
 
 Invalid
 
 Pixmap
 
 Texture
 

Detailed Description

An image provider for displaying a contact's photo.

It is automatically available when importing the KPeople QML module.

Image URIs for it can be retrieved from KPeople.PersonData's photoImageProviderUri property, or from KPeople.PersonsModel's photoImageProviderUri role.

Example:

Kirigami.Avatar {
source: person.photoImageProviderUri
}
Since
5.93.0

Definition at line 28 of file avatarimageprovider.h.


The documentation for this class was generated from the following files:
This file is part of the KDE documentation.
Documentation copyright © 1996-2022 The KDE developers.
Generated on Thu Oct 6 2022 04:09:16 by doxygen 1.8.17 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.