45 #include <QCommonStyle>
54 void drawHoverRect(QPainter *painter,
const QRect &rect)
const;
56 void drawPrimitive(PrimitiveElement element,
const QStyleOption *option,
57 QPainter *painter,
const QWidget *widget = 0)
const;
58 void drawControl(ControlElement element,
const QStyleOption *option,
59 QPainter *painter,
const QWidget *widget)
const;
61 QPainter *painter,
const QWidget *widget)
const;
63 const QSize &size,
const QWidget *widget)
const;
65 QRect
subElementRect(SubElement element,
const QStyleOption *option,
const QWidget *widget)
const;
66 QRect
subControlRect(ComplexControl cc,
const QStyleOptionComplex *opt,
67 SubControl sc,
const QWidget *widget)
const;
69 int pixelMetric(PixelMetric metric,
const QStyleOption *option,
const QWidget *widget)
const;
71 void polish(QPalette &palette);
72 void polish(QWidget *widget);