8#include <dtkgui_global.h>
44 inline const QColor &color(ColorGroup cg, ColorType ct)
const
45 {
return brush(cg, ct).color(); }
46 const QBrush &brush(ColorGroup cg, ColorType ct)
const;
47 inline void setColor(ColorGroup cg, ColorType ct,
const QColor &color)
48 { setBrush(cg, ct, color); }
49 inline void setColor(ColorType ct,
const QColor &color)
50 { setColor(All, ct, color); }
51 inline void setBrush(ColorType ct,
const QBrush &brush)
52 { setBrush(All, ct, brush); }
53 void setBrush(ColorGroup cg, ColorType ct,
const QBrush &brush);
55 inline const QColor &color(ColorType ct)
const {
return color(Current, ct); }
56 inline const QBrush &brush(ColorType ct)
const {
return brush(Current, ct); }
57 inline const QBrush &itemBackground()
const {
return brush(ItemBackground); }
58 inline const QBrush &textTitle()
const {
return brush(TextTitle); }
59 D_DECL_DEPRECATED
inline const QBrush &textTiele()
const {
return textTitle();}
60 inline const QBrush &textTips()
const {
return brush(TextTips); }
61 inline const QBrush &textWarning()
const {
return brush(TextWarning); }
62 inline const QBrush &textLively()
const {
return brush(TextLively); }
63 inline const QBrush &lightLively()
const {
return brush(LightLively); }
64 inline const QBrush &darkLively()
const {
return brush(DarkLively); }
65 inline const QBrush &frameBorder()
const {
return brush(FrameBorder); }
66 inline const QBrush &placeholderText()
const {
return brush(PlaceholderText); }
67 inline const QBrush &frameShadowBorder()
const {
return brush(FrameShadowBorder); }
69 using QPalette::color;
70 using QPalette::brush;
71 using QPalette::setBrush;
72 using QPalette::setColor;
86#ifndef QT_NO_DATASTREAM
91#ifndef QT_NO_DEBUG_STREAM
92Q_GUI_EXPORT
QDebug operator<<(
QDebug,
const DTK_GUI_NAMESPACE::DPalette &);
DPalette提供了修改的 QPalette 类.
Definition: dpalette.h:17