FlightGear next
QmlColoredImageProvider Class Reference

Heper image provider to allow re-colorizing images based on the active style. More...

#include <QmlColoredImageProvider.hxx>

Inherits QQuickImageProvider.

Public Member Functions

 QmlColoredImageProvider ()
 
QImage requestImage (const QString &id, QSize *size, const QSize &requestedSize) override
 
QPixmap requestPixmap (const QString &id, QSize *size, const QSize &requestedSize) override
 
void loadStyleColors (QQmlEngine *engine, int styleTypeId)
 

Static Public Member Functions

static QmlColoredImageProviderinstance ()
 

Detailed Description

Heper image provider to allow re-colorizing images based on the active style.

Definition at line 29 of file QmlColoredImageProvider.hxx.

Constructor & Destructor Documentation

◆ QmlColoredImageProvider()

QmlColoredImageProvider::QmlColoredImageProvider ( )

Definition at line 25 of file QmlColoredImageProvider.cxx.

Member Function Documentation

◆ instance()

QmlColoredImageProvider * QmlColoredImageProvider::instance ( )
static

Definition at line 137 of file QmlColoredImageProvider.cxx.

◆ loadStyleColors()

void QmlColoredImageProvider::loadStyleColors ( QQmlEngine * engine,
int styleTypeId )

Definition at line 30 of file QmlColoredImageProvider.cxx.

◆ requestImage()

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

Definition at line 74 of file QmlColoredImageProvider.cxx.

◆ requestPixmap()

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

Definition at line 131 of file QmlColoredImageProvider.cxx.


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