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
QQuickPaletteColorProvider Class Reference

#include <qquickpalettecolorprovider_p.h>

+ Inheritance diagram for QQuickPaletteColorProvider:
+ Collaboration diagram for QQuickPaletteColorProvider:

Public Member Functions

 QQuickPaletteColorProvider ()
 
const QColorcolor (QPalette::ColorGroup group, QPalette::ColorRole role) const
 
bool setColor (QPalette::ColorGroup group, QPalette::ColorRole role, QColor color)
 
bool resetColor (QPalette::ColorGroup group, QPalette::ColorRole role)
 
bool resetColor (QPalette::ColorGroup group)
 
bool fromQPalette (QPalette p)
 
QPalette palette () const
 
const QQuickAbstractPaletteProviderpaletteProvider () const
 
void setPaletteProvider (const QQuickAbstractPaletteProvider *paletteProvider)
 
bool copyColorGroup (QPalette::ColorGroup cg, const QQuickPaletteColorProvider &p)
 
bool reset ()
 
bool inheritPalette (const QPalette &palette)
 

Detailed Description

Definition at line 28 of file qquickpalettecolorprovider_p.h.

Constructor & Destructor Documentation

◆ QQuickPaletteColorProvider()

QQuickPaletteColorProvider::QQuickPaletteColorProvider ( )

Definition at line 28 of file qquickpalettecolorprovider.cpp.

Member Function Documentation

◆ color()

const QColor & QQuickPaletteColorProvider::color ( QPalette::ColorGroup group,
QPalette::ColorRole role ) const

Definition at line 33 of file qquickpalettecolorprovider.cpp.

References adjustCg(), and QPalette::color().

+ Here is the call graph for this function:

◆ copyColorGroup()

bool QQuickPaletteColorProvider::copyColorGroup ( QPalette::ColorGroup cg,
const QQuickPaletteColorProvider & p )

Definition at line 122 of file qquickpalettecolorprovider.cpp.

References QPalette::NColorRoles, QPalette::setBrush(), and QPalette::WindowText.

+ Here is the call graph for this function:

◆ fromQPalette()

bool QQuickPaletteColorProvider::fromQPalette ( QPalette p)

Definition at line 99 of file qquickpalettecolorprovider.cpp.

References QLazilyAllocated< T, Tag >::value().

Referenced by reset().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ inheritPalette()

bool QQuickPaletteColorProvider::inheritPalette ( const QPalette & palette)

Merge the given palette with the existing requested palette, remember that it is the inherited palette (in case updateInheritedPalette() is called later), and update the stored palette (to be returned from \l palette()) if the result is different. Returns whether the stored palette got changed.

Definition at line 150 of file qquickpalettecolorprovider.cpp.

References palette(), and QLazilyAllocated< T, Tag >::value().

+ Here is the call graph for this function:

◆ palette()

QPalette QQuickPaletteColorProvider::palette ( ) const

Definition at line 105 of file qquickpalettecolorprovider.cpp.

Referenced by inheritPalette(), and QQuickPalette::toQPalette().

+ Here is the caller graph for this function:

◆ paletteProvider()

const QQuickAbstractPaletteProvider * QQuickPaletteColorProvider::paletteProvider ( ) const

Definition at line 110 of file qquickpalettecolorprovider.cpp.

References Q_ASSERT.

Referenced by QQuickPalette::paletteProvider(), and setPaletteProvider().

+ Here is the caller graph for this function:

◆ reset()

bool QQuickPaletteColorProvider::reset ( )

Definition at line 138 of file qquickpalettecolorprovider.cpp.

References fromQPalette().

+ Here is the call graph for this function:

◆ resetColor() [1/2]

bool QQuickPaletteColorProvider::resetColor ( QPalette::ColorGroup group)

Definition at line 68 of file qquickpalettecolorprovider.cpp.

References QPalette::Active, QPalette::All, QPalettePrivate::bitPosition(), QPalette::Current, QPalette::currentColorGroup(), QLazilyAllocated< T, Tag >::isAllocated(), QPalette::NColorGroups, QPalette::NColorRoles, QPalette::resolveMask(), QPalette::setResolveMask(), and QPalette::WindowText.

+ Here is the call graph for this function:

◆ resetColor() [2/2]

bool QQuickPaletteColorProvider::resetColor ( QPalette::ColorGroup group,
QPalette::ColorRole role )

Definition at line 46 of file qquickpalettecolorprovider.cpp.

References QPalette::Active, QPalette::All, QPalettePrivate::bitPosition(), QPalette::Current, QPalette::currentColorGroup(), QLazilyAllocated< T, Tag >::isAllocated(), QPalette::NColorGroups, QPalette::resolveMask(), and QPalette::setResolveMask().

+ Here is the call graph for this function:

◆ setColor()

bool QQuickPaletteColorProvider::setColor ( QPalette::ColorGroup group,
QPalette::ColorRole role,
QColor color )

Definition at line 38 of file qquickpalettecolorprovider.cpp.

References QPalette::setColor().

+ Here is the call graph for this function:

◆ setPaletteProvider()

void QQuickPaletteColorProvider::setPaletteProvider ( const QQuickAbstractPaletteProvider * paletteProvider)

Definition at line 116 of file qquickpalettecolorprovider.cpp.

References paletteProvider().

Referenced by QQuickPalette::setPaletteProvider().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

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