DtkWidget
DTK Widget module
|
Public 成员函数 | |
DStyleHelper (const QStyle *style=QApplication::style()) | |
void | setStyle (const QStyle *style) |
const QStyle * | style () const |
const DStyle * | dstyle () const |
QBrush | generatedBrush (const QStyleOption *option, const QBrush &base, QPalette::ColorGroup cg=QPalette::Normal, QPalette::ColorRole role=QPalette::NoRole) const |
QBrush | generatedBrush (const QStyleOption *option, const QBrush &base, QPalette::ColorGroup cg=QPalette::Normal, DPalette::ColorType type=DPalette::NoType) const |
QColor | getColor (const QStyleOption *option, QPalette::ColorRole role) const |
QColor | getColor (const QStyleOption *option, const DPalette &palette, DPalette::ColorType type) const |
template<class T > | |
QColor | getColor (const T *option, DPalette::ColorType type) const |
void | drawPrimitive (DStyle::PrimitiveElement pe, const QStyleOption *opt, QPainter *p, const QWidget *w=nullptr) const |
void | drawControl (DStyle::ControlElement ce, const QStyleOption *opt, QPainter *p, const QWidget *w=nullptr) const |
int | pixelMetric (DStyle::PixelMetric m, const QStyleOption *opt=nullptr, const QWidget *widget=nullptr) const |
QRect | subElementRect (DStyle::SubElement r, const QStyleOption *opt, const QWidget *widget=nullptr) const |
QSize | sizeFromContents (DStyle::ContentsType ct, const QStyleOption *opt, const QSize &contentsSize, const QWidget *widget=nullptr) const |
QIcon | standardIcon (DStyle::StandardPixmap standardIcon, const QStyleOption *opt, const QWidget *widget=nullptr) const |