Go to the
documentation of this file.
00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024
00025
00026
00027
00028
00029
00030
00031
00032
00033
00034
00035
00036
00037
00038
00039
00040
00041
00042 #ifndef QWINDOWSSTYLE_H
00043 #define QWINDOWSSTYLE_H
00044
00045 #include <QtGui/qcommonstyle.h>
00046
00047 QT_BEGIN_HEADER
00048
00049 QT_BEGIN_NAMESPACE
00050
00051 QT_MODULE(Gui)
00052
00053 #if !defined(QT_NO_STYLE_WINDOWS)
00054
00055 class QWindowsStylePrivate;
00056
00057 class Q_GUI_EXPORT QWindowsStyle : public QCommonStyle
00058 {
00059 Q_OBJECT
00060 public:
00061 QWindowsStyle();
00062 ~QWindowsStyle();
00063
00064 void polish(QApplication*);
00065 void unpolish(QApplication*);
00066
00067 void polish(QWidget*);
00068 void unpolish(QWidget*);
00069
00070 void polish(QPalette &);
00071
00072 void drawPrimitive(PrimitiveElement pe, const QStyleOption *opt, QPainter *p,
00073 const QWidget *w = 0) const;
00074 void drawControl(ControlElement element, const QStyleOption *opt, QPainter *p,
00075 const QWidget *w = 0) const;
00076 QRect subElementRect(SubElement r, const QStyleOption *opt, const QWidget *widget = 0) const;
00077 void drawComplexControl(ComplexControl cc, const QStyleOptionComplex *opt, QPainter *p,
00078 const QWidget *w = 0) const;
00079 QSize sizeFromContents(ContentsType ct, const QStyleOption *opt,
00080 const QSize &contentsSize, const QWidget *widget = 0) const;
00081
00082 int pixelMetric(PixelMetric pm, const QStyleOption *option = 0, const QWidget *widget = 0) const;
00083
00084 int styleHint(StyleHint hint, const QStyleOption *opt = 0, const QWidget *widget = 0,
00085 QStyleHintReturn *returnData = 0) const;
00086
00087 QPixmap standardPixmap(StandardPixmap standardPixmap, const QStyleOption *opt,
00088 const QWidget *widget = 0) const;
00089
00090 protected Q_SLOTS:
00091 QIcon standardIconImplementation(StandardPixmap standardIcon, const QStyleOption *option,
00092 const QWidget *widget = 0) const;
00093
00094 protected:
00095 bool eventFilter(QObject *o, QEvent *e);
00096 void timerEvent(QTimerEvent *event);
00097 QWindowsStyle(QWindowsStylePrivate &dd);
00098
00099 private:
00100 Q_DISABLE_COPY(QWindowsStyle)
00101 Q_DECLARE_PRIVATE(QWindowsStyle)
00102 void *reserved;
00103 };
00104
00105 #endif // QT_NO_STYLE_WINDOWS
00106
00107 QT_END_NAMESPACE
00108
00109 QT_END_HEADER
00110
00111 #endif // QWINDOWSSTYLE_H