Qt 6.x
The Qt SDK
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 ()
 
virtual QVariant colorFromString (const QString &, bool *)
 
virtual unsigned rgbaFromString (const QString &, bool *)
 
virtual QVariant fromRgbF (double, double, double, double)
 
virtual QVariant fromHslF (double, double, double, double)
 
virtual QVariant fromHsvF (double, double, double, double)
 
virtual QVariant lighter (const QVariant &, qreal)
 
virtual QVariant darker (const QVariant &, qreal)
 
virtual QVariant alpha (const QVariant &, qreal)
 
virtual QVariant tint (const QVariant &, const QVariant &)
 

Detailed Description

Definition at line 155 of file qquickglobal.cpp.

Member Function Documentation

◆ alpha()

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

Reimplemented from QQmlColorProvider.

Definition at line 221 of file qquickglobal.cpp.

References QVariant::fromValue(), 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 158 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 214 of file qquickglobal.cpp.

References 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 197 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 202 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 192 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 207 of file qquickglobal.cpp.

References QVariant::fromValue(), 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 170 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 182 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 228 of file qquickglobal.cpp.

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

+ Here is the call graph for this function:

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