39 ProxyStyle(QStyle *baseStyle = 0, QObject* parent = 0);
42 void ensureBaseStyle()
const;
44 virtual void drawPrimitive(PrimitiveElement element,
const QStyleOption *option, QPainter *painter,
const QWidget *widget = 0)
const;
45 virtual void drawControl(ControlElement element,
const QStyleOption *option, QPainter *painter,
const QWidget *widget = 0)
const;
46 virtual void drawComplexControl(ComplexControl control,
const QStyleOptionComplex *option, QPainter *painter,
const QWidget *widget = 0)
const;
47 virtual void drawItemText(QPainter *painter,
const QRect &rect,
int flags,
const QPalette &pal,
bool enabled,
48 const QString &text, QPalette::ColorRole textRole = QPalette::NoRole)
const;
49 virtual void drawItemPixmap(QPainter *painter,
const QRect &rect,
int alignment,
const QPixmap &pixmap)
const;
51 virtual QSize sizeFromContents(ContentsType type,
const QStyleOption *option,
const QSize &size,
const QWidget *widget)
const;
53 virtual QRect subElementRect(SubElement element,
const QStyleOption *option,
const QWidget *widget)
const;
54 virtual QRect subControlRect(ComplexControl cc,
const QStyleOptionComplex *opt, SubControl sc,
const QWidget *widget)
const;
55 virtual QRect itemTextRect(
const QFontMetrics &fm,
const QRect &r,
int flags,
bool enabled,
const QString &text)
const;
56 virtual QRect itemPixmapRect(
const QRect &r,
int flags,
const QPixmap &pixmap)
const;
58 virtual SubControl hitTestComplexControl(ComplexControl control,
const QStyleOptionComplex *option,
const QPoint &pos,
const QWidget *widget = 0)
const;
59 virtual int styleHint(StyleHint hint,
const QStyleOption *option = 0,
const QWidget *widget = 0, QStyleHintReturn *returnData = 0)
const;
60 virtual int pixelMetric(PixelMetric metric,
const QStyleOption *option = 0,
const QWidget *widget = 0)
const;
62 virtual QPixmap standardPixmap(StandardPixmap standardPixmap,
const QStyleOption *opt,
const QWidget *widget = 0)
const;
63 virtual QPixmap generatedIconPixmap(QIcon::Mode iconMode,
const QPixmap &pixmap,
const QStyleOption *opt)
const;
64 virtual QPalette standardPalette()
const;
66 virtual void polish(QWidget *widget);
67 virtual void polish(QPalette &pal);
68 virtual void polish(QApplication *app);
70 virtual void unpolish(QWidget *widget);
71 virtual void unpolish(QApplication *app);
74 QScopedPointer<ProxyStylePrivate> d_ptr;
75 virtual bool event(QEvent *e);
78 virtual QIcon standardIconImplementation(StandardPixmap standardIcon,
const QStyleOption *option,
const QWidget *widget)
const;
79 virtual int layoutSpacingImplementation(QSizePolicy::ControlType control1, QSizePolicy::ControlType control2,
80 Qt::Orientation orientation,
const QStyleOption *option = 0,
const QWidget *widget = 0)
const;