Definition at line 61 of file qpalette.h.
#include <qpalette.h>
Public Types |
|
| enum | ColorGroup
{ Active, Disabled, Inactive, NColorGroups, Current, All, Normal = Active } |
| enum | ColorRole
{ WindowText, Button, Light, Midlight, Dark, Mid, Text, BrightText, ButtonText, Base, Window, Shadow, Highlight, HighlightedText, Link, LinkVisited, AlternateBase, NoRole, ToolTipBase, ToolTipText, NColorRoles = ToolTipText + 1, Foreground = WindowText, Background = Window } |
Public Member Functions |
|
| QPalette () | |
| QPalette (const QColor &button) | |
| QPalette (Qt::GlobalColor button) | |
| QPalette (const QColor &button, const QColor &window) | |
| QPalette (const QBrush &windowText, const QBrush &button, const QBrush &light, const QBrush &dark, const QBrush &mid, const QBrush &text, const QBrush &bright_text, const QBrush &base, const QBrush &window) | |
| QPalette (const QColor &windowText, const QColor &window, const QColor &light, const QColor &dark, const QColor &mid, const QColor &text, const QColor &base) | |
| QPalette (const QPalette &palette) | |
| ~QPalette () | |
| QPalette & | operator= (const QPalette &palette) |
| operator QVariant () const | |
| ColorGroup | currentColorGroup () const |
| void | setCurrentColorGroup (ColorGroup cg) |
| const QColor & | color (ColorGroup cg, ColorRole cr) const |
| const QBrush & | brush (ColorGroup cg, ColorRole cr) const |
| void | setColor (ColorGroup cg, ColorRole cr, const QColor &color) |
| void | setColor (ColorRole cr, const QColor &color) |
| void | setBrush (ColorRole cr, const QBrush &brush) |
| bool | isBrushSet (ColorGroup cg, ColorRole cr) const |
| void | setBrush (ColorGroup cg, ColorRole cr, const QBrush &brush) |
| void | setColorGroup (ColorGroup cr, const QBrush &windowText, const QBrush &button, const QBrush &light, const QBrush &dark, const QBrush &mid, const QBrush &text, const QBrush &bright_text, const QBrush &base, const QBrush &window) |
| bool | isEqual (ColorGroup cr1, ColorGroup cr2) const |
| const QColor & | color (ColorRole cr) const |
| const QBrush & | brush (ColorRole cr) const |
| const QBrush & | foreground () const |
| const QBrush & | windowText () const |
| const QBrush & | button () const |
| const QBrush & | light () const |
| const QBrush & | dark () const |
| const QBrush & | mid () const |
| const QBrush & | text () const |
| const QBrush & | base () const |
| const QBrush & | alternateBase () const |
| const QBrush & | toolTipBase () const |
| const QBrush & | toolTipText () const |
| const QBrush & | background () const |
| const QBrush & | window () const |
| const QBrush & | midlight () const |
| const QBrush & | brightText () const |
| const QBrush & | buttonText () const |
| const QBrush & | shadow () const |
| const QBrush & | highlight () const |
| const QBrush & | highlightedText () const |
| const QBrush & | link () const |
| const QBrush & | linkVisited () const |
| bool | operator== (const QPalette &p) const |
| bool | operator!= (const QPalette &p) const |
| bool | isCopyOf (const QPalette &p) const |
| int | serialNumber () const |
| qint64 | cacheKey () const |
| QPalette | resolve (const QPalette &) const |
| uint | resolve () const |
| void | resolve (uint mask) |
Friends |
|
| Q_GUI_EXPORT QDataStream & | operator<< (QDataStream &s, const QPalette &p) |
| enum ColorGroup |
Definition at line 84 of file qpalette.h.
| enum ColorRole |
Definition at line 85 of file qpalette.h.
{ WindowText, Button, Light, Midlight, Dark, Mid,
Text, BrightText, ButtonText, Base, Window, Shadow,
Highlight, HighlightedText,
Link, LinkVisited, // ### Qt 5: remove
AlternateBase,
NoRole, // ### Qt 5: value should be 0 or -1
ToolTipBase, ToolTipText,
NColorRoles = ToolTipText + 1,
Foreground = WindowText, Background = Window // ### Qt 5: remove
};
| QPalette | ( | ) |
| QPalette | ( | Qt::GlobalColor | button | ) |
| ~QPalette | ( | ) |
| operator QVariant | ( | ) | const |
| ColorGroup currentColorGroup | ( | ) | const [inline] |
Definition at line 96 of file qpalette.h.
{ return static_cast<ColorGroup>(current_group); }
| void setCurrentColorGroup | ( | ColorGroup | cg | ) | [inline] |
| const QColor& color | ( | ColorGroup | cg, |
| ColorRole | cr | ||
| ) | const [inline] |
Definition at line 99 of file qpalette.h.
| const QBrush& brush | ( | ColorGroup | cg, |
| ColorRole | cr | ||
| ) | const |
| void setColor | ( | ColorGroup | cg, |
| ColorRole | cr, | ||
| const QColor & | color | ||
| ) | [inline] |
Definition at line 193 of file qpalette.h.
Definition at line 196 of file qpalette.h.
Definition at line 198 of file qpalette.h.
| bool isBrushSet | ( | ColorGroup | cg, |
| ColorRole | cr | ||
| ) | const |
| void setBrush | ( | ColorGroup | cg, |
| ColorRole | cr, | ||
| const QBrush & | brush | ||
| ) |
| bool isEqual | ( | ColorGroup | cr1, |
| ColorGroup | cr2 | ||
| ) | const |
Definition at line 113 of file qpalette.h.
Definition at line 114 of file qpalette.h.
| const QBrush& foreground | ( | ) | const [inline] |
| const QBrush& windowText | ( | ) | const [inline] |
| const QBrush& button | ( | ) | const [inline] |
| const QBrush& light | ( | ) | const [inline] |
| const QBrush& dark | ( | ) | const [inline] |
| const QBrush& mid | ( | ) | const [inline] |
| const QBrush& text | ( | ) | const [inline] |
| const QBrush& base | ( | ) | const [inline] |
| const QBrush& alternateBase | ( | ) | const [inline] |
Definition at line 123 of file qpalette.h.
{ return brush(AlternateBase); }
| const QBrush& toolTipBase | ( | ) | const [inline] |
Definition at line 124 of file qpalette.h.
{ return brush(ToolTipBase); }
| const QBrush& toolTipText | ( | ) | const [inline] |
Definition at line 125 of file qpalette.h.
{ return brush(ToolTipText); }
| const QBrush& background | ( | ) | const [inline] |
| const QBrush& window | ( | ) | const [inline] |
| const QBrush& midlight | ( | ) | const [inline] |
| const QBrush& brightText | ( | ) | const [inline] |
| const QBrush& buttonText | ( | ) | const [inline] |
| const QBrush& shadow | ( | ) | const [inline] |
| const QBrush& highlight | ( | ) | const [inline] |
| const QBrush& highlightedText | ( | ) | const [inline] |
Definition at line 133 of file qpalette.h.
{ return brush(HighlightedText); }
| const QBrush& link | ( | ) | const [inline] |
| const QBrush& linkVisited | ( | ) | const [inline] |
Definition at line 135 of file qpalette.h.
{ return brush(LinkVisited); }
| bool operator== | ( | const QPalette & | p | ) | const |
| bool operator!= | ( | const QPalette & | p | ) | const [inline] |
Definition at line 151 of file qpalette.h.
{ return !(operator==(p)); }
| bool isCopyOf | ( | const QPalette & | p | ) | const |
| int serialNumber | ( | ) | const |
| qint64 cacheKey | ( | ) | const |
| uint resolve | ( | ) | const [inline] |
| void resolve | ( | uint | mask | ) | [inline] |
| Q_GUI_EXPORT QDataStream& operator<< | ( | QDataStream & | s, |
| const QPalette & | p | ||
| ) | [friend] |