Qt
Internal/Contributor docs for the Qt SDK. Note: These are NOT official API docs; those are found at https://doc.qt.io/
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 29 of file qquickpalettecolorprovider_p.h.

Constructor & Destructor Documentation

◆ QQuickPaletteColorProvider()

QQuickPaletteColorProvider::QQuickPaletteColorProvider ( )

Definition at line 29 of file qquickpalettecolorprovider.cpp.

Member Function Documentation

◆ color()

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

Definition at line 34 of file qquickpalettecolorprovider.cpp.

◆ copyColorGroup()

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

Definition at line 123 of file qquickpalettecolorprovider.cpp.

◆ fromQPalette()

bool QQuickPaletteColorProvider::fromQPalette ( QPalette p)

Definition at line 100 of file qquickpalettecolorprovider.cpp.

◆ 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 151 of file qquickpalettecolorprovider.cpp.

◆ palette()

QPalette QQuickPaletteColorProvider::palette ( ) const

Definition at line 106 of file qquickpalettecolorprovider.cpp.

◆ paletteProvider()

const QQuickAbstractPaletteProvider * QQuickPaletteColorProvider::paletteProvider ( ) const

Definition at line 111 of file qquickpalettecolorprovider.cpp.

◆ reset()

bool QQuickPaletteColorProvider::reset ( )

Definition at line 139 of file qquickpalettecolorprovider.cpp.

◆ resetColor() [1/2]

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

Definition at line 69 of file qquickpalettecolorprovider.cpp.

◆ resetColor() [2/2]

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

Definition at line 47 of file qquickpalettecolorprovider.cpp.

◆ setColor()

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

Definition at line 39 of file qquickpalettecolorprovider.cpp.

◆ setPaletteProvider()

void QQuickPaletteColorProvider::setPaletteProvider ( const QQuickAbstractPaletteProvider * paletteProvider)

Definition at line 117 of file qquickpalettecolorprovider.cpp.


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