Definition at line 55 of file qstylepainter.h.
#include <qstylepainter.h>

Public Member Functions |
|
| QStylePainter () | |
| QStylePainter (QWidget *w) | |
| QStylePainter (QPaintDevice *pd, QWidget *w) | |
| bool | begin (QWidget *w) |
| bool | begin (QPaintDevice *pd, QWidget *w) |
| void | drawPrimitive (QStyle::PrimitiveElement pe, const QStyleOption &opt) |
| void | drawControl (QStyle::ControlElement ce, const QStyleOption &opt) |
| void | drawComplexControl (QStyle::ComplexControl cc, const QStyleOptionComplex &opt) |
| void | drawItemText (const QRect &r, int flags, const QPalette &pal, bool enabled, const QString &text, QPalette::ColorRole textRole=QPalette::NoRole) |
| void | drawItemPixmap (const QRect &r, int flags, const QPixmap &pixmap) |
| QStyle * | style () const |
| QStylePainter | ( | ) | [inline] |
Definition at line 58 of file qstylepainter.h.
: QPainter(), widget(0), wstyle(0) {}
| QStylePainter | ( | QWidget * | w | ) | [inline, explicit] |
Definition at line 59 of file qstylepainter.h.
{ begin(w, w); }
| QStylePainter | ( | QPaintDevice * | pd, |
| QWidget * | w | ||
| ) | [inline] |
Definition at line 60 of file qstylepainter.h.
{ begin(pd, w); }
| bool begin | ( | QWidget * | w | ) | [inline] |
| bool begin | ( | QPaintDevice * | pd, |
| QWidget * | w | ||
| ) | [inline] |
Definition at line 62 of file qstylepainter.h.
{
Q_ASSERT_X(w, "QStylePainter::QStylePainter", "Widget must be non-zero");
widget = w;
wstyle = w->style();
return QPainter::begin(pd);
};
| void drawPrimitive | ( | QStyle::PrimitiveElement | pe, |
| const QStyleOption & | opt | ||
| ) | [inline] |
Definition at line 82 of file qstylepainter.h.
{
wstyle->drawPrimitive(pe, &opt, this, widget);
}
| void drawControl | ( | QStyle::ControlElement | ce, |
| const QStyleOption & | opt | ||
| ) | [inline] |
Definition at line 87 of file qstylepainter.h.
{
wstyle->drawControl(ce, &opt, this, widget);
}
| void drawComplexControl | ( | QStyle::ComplexControl | cc, |
| const QStyleOptionComplex & | opt | ||
| ) | [inline] |
Definition at line 92 of file qstylepainter.h.
{
wstyle->drawComplexControl(cc, &opt, this, widget);
}
| void drawItemText | ( | const QRect & | r, |
| int | flags, | ||
| const QPalette & | pal, | ||
| bool | enabled, | ||
| const QString & | text, | ||
| QPalette::ColorRole | textRole =
QPalette::NoRole |
||
| ) | [inline] |
Definition at line 97 of file qstylepainter.h.
{
wstyle->drawItemText(this, r, flags, pal, enabled, text, textRole);
}
Definition at line 103 of file qstylepainter.h.
{
wstyle->drawItemPixmap(this, r, flags, pixmap);
}
| QStyle* style | ( | ) | const [inline] |