QQuickImageProvider for ForkAwesome 0.3.4
QQuickImageProvider for ForkAwesome
Loading...
Searching...
No Matches
QtForkAwesome::QuickImageProvider Class Reference

#include <imageprovider.h>

Inheritance diagram for QtForkAwesome::QuickImageProvider:
[legend]
Collaboration diagram for QtForkAwesome::QuickImageProvider:
[legend]

Public Slots

void setDefaultColor (const QColor &color)
void setDefaultSize (const QSize &size)

Public Member Functions

 QuickImageProvider (const Renderer &renderer, const QColor &defaultColor=QColor(), const QSize &defaultSize=QSize(64, 64), QQuickImageProvider::ImageType type=QQuickImageProvider::Pixmap)
QImage requestImage (const QString &id, QSize *size, const QSize &requestedSize) override
QPixmap requestPixmap (const QString &id, QSize *size, const QSize &requestedSize) override
QColor defaultColor () const
QSize defaultSize () const

Properties

QColor defaultColor
QSize defaultSize

Detailed Description

Definition at line 17 of file imageprovider.h.

Constructor & Destructor Documentation

◆ QuickImageProvider()

QtForkAwesome::QuickImageProvider::QuickImageProvider ( const Renderer & renderer,
const QColor & defaultColor = QColor(),
const QSize & defaultSize = QSize(64, 64),
QQuickImageProvider::ImageType type = QQuickImageProvider::Pixmap )

Definition at line 17 of file imageprovider.cpp.

Member Function Documentation

◆ defaultColor()

QColor QtForkAwesome::QuickImageProvider::defaultColor ( ) const
inline

Definition at line 47 of file imageprovider.h.

◆ defaultSize()

QSize QtForkAwesome::QuickImageProvider::defaultSize ( ) const
inline

Definition at line 52 of file imageprovider.h.

◆ requestImage()

QImage QtForkAwesome::QuickImageProvider::requestImage ( const QString & id,
QSize * size,
const QSize & requestedSize )
override

Definition at line 65 of file imageprovider.cpp.

◆ requestPixmap()

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

Definition at line 26 of file imageprovider.cpp.

◆ setDefaultColor

void QtForkAwesome::QuickImageProvider::setDefaultColor ( const QColor & color)
inlineslot

Definition at line 57 of file imageprovider.h.

◆ setDefaultSize

void QtForkAwesome::QuickImageProvider::setDefaultSize ( const QSize & size)
inlineslot

Definition at line 62 of file imageprovider.h.

Property Documentation

◆ defaultColor

QColor QtForkAwesome::QuickImageProvider::defaultColor
readwrite

Definition at line 20 of file imageprovider.h.

◆ defaultSize

QSize QtForkAwesome::QuickImageProvider::defaultSize
readwrite

Definition at line 21 of file imageprovider.h.


The documentation for this class was generated from the following files: