Qt
Internal/Contributor docs for the Qt SDK. <b>Note:</b> These are NOT official API docs; those are found <a href='https://doc.qt.io/'>here</a>.
Loading...
Searching...
No Matches
QQuickColorProvider Class Reference
+ Inheritance diagram for QQuickColorProvider:
+ Collaboration diagram for QQuickColorProvider:

Public Member Functions

QVariant colorFromString (const QString &s, bool *ok) override
 
unsigned rgbaFromString (const QString &s, bool *ok) override
 
QString stringFromRgba (unsigned rgba)
 
QVariant fromRgbF (double r, double g, double b, double a) override
 
QVariant fromHslF (double h, double s, double l, double a) override
 
QVariant fromHsvF (double h, double s, double v, double a) override
 
QVariant lighter (const QVariant &var, qreal factor) override
 
QVariant darker (const QVariant &var, qreal factor) override
 
QVariant alpha (const QVariant &var, qreal value) override
 
QVariant tint (const QVariant &baseVar, const QVariant &tintVar) override
 
- Public Member Functions inherited from QQmlColorProvider
virtual ~QQmlColorProvider ()
 

Detailed Description

Definition at line 156 of file qquickglobal.cpp.

Member Function Documentation

◆ alpha()

QVariant QQuickColorProvider::alpha ( const QVariant & var,
qreal value )
inlineoverridevirtual

Reimplemented from QQmlColorProvider.

Definition at line 222 of file qquickglobal.cpp.

References QVariant::fromValue(), QColor::setAlphaF(), QVariant::value(), and var.

+ Here is the call graph for this function:

◆ colorFromString()

QVariant QQuickColorProvider::colorFromString ( const QString & s,
bool * ok )
inlineoverridevirtual

Reimplemented from QQmlColorProvider.

Definition at line 159 of file qquickglobal.cpp.

References QColor::fromString(), and ok.

+ Here is the call graph for this function:

◆ darker()

QVariant QQuickColorProvider::darker ( const QVariant & var,
qreal factor )
inlineoverridevirtual

Reimplemented from QQmlColorProvider.

Definition at line 215 of file qquickglobal.cpp.

References QColor::darker(), QVariant::fromValue(), qRound(), QVariant::value(), and var.

+ Here is the call graph for this function:

◆ fromHslF()

QVariant QQuickColorProvider::fromHslF ( double h,
double s,
double l,
double a )
inlineoverridevirtual

Reimplemented from QQmlColorProvider.

Definition at line 198 of file qquickglobal.cpp.

References QColor::fromHslF().

+ Here is the call graph for this function:

◆ fromHsvF()

QVariant QQuickColorProvider::fromHsvF ( double h,
double s,
double v,
double a )
inlineoverridevirtual

Reimplemented from QQmlColorProvider.

Definition at line 203 of file qquickglobal.cpp.

References QColor::fromHsvF().

+ Here is the call graph for this function:

◆ fromRgbF()

QVariant QQuickColorProvider::fromRgbF ( double r,
double g,
double b,
double a )
inlineoverridevirtual

Reimplemented from QQmlColorProvider.

Definition at line 193 of file qquickglobal.cpp.

References QColor::fromRgbF().

+ Here is the call graph for this function:

◆ lighter()

QVariant QQuickColorProvider::lighter ( const QVariant & var,
qreal factor )
inlineoverridevirtual

Reimplemented from QQmlColorProvider.

Definition at line 208 of file qquickglobal.cpp.

References QVariant::fromValue(), QColor::lighter(), qRound(), QVariant::value(), and var.

+ Here is the call graph for this function:

◆ rgbaFromString()

unsigned QQuickColorProvider::rgbaFromString ( const QString & s,
bool * ok )
inlineoverridevirtual

Reimplemented from QQmlColorProvider.

Definition at line 171 of file qquickglobal.cpp.

References QColor::fromString(), and ok.

+ Here is the call graph for this function:

◆ stringFromRgba()

QString QQuickColorProvider::stringFromRgba ( unsigned rgba)
inline

Definition at line 183 of file qquickglobal.cpp.

References QColor::fromRgba(), and QVariant::toString().

+ Here is the call graph for this function:

◆ tint()

QVariant QQuickColorProvider::tint ( const QVariant & baseVar,
const QVariant & tintVar )
inlineoverridevirtual

Reimplemented from QQmlColorProvider.

Definition at line 229 of file qquickglobal.cpp.

References QColor::alphaF(), QColor::blueF(), QColor::fromRgbF(), QVariant::fromValue(), QColor::greenF(), QColor::redF(), and QColor::value().

+ Here is the call graph for this function:

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