Qt 6.x
The Qt SDK
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
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 52 of file qquickpalettecolorprovider.cpp.

Member Function Documentation

◆ color()

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

Definition at line 57 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 146 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 123 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 174 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 129 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 134 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 162 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 92 of file qquickpalettecolorprovider.cpp.

References QPalette::Active, QPalette::All, 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 70 of file qquickpalettecolorprovider.cpp.

References QPalette::Active, QPalette::All, 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 62 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 140 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: