KStyles
lightstyle-v3.h
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 #ifndef LIGHTSTYLE_V3_H
00024 #define LIGHTSTYLE_V3_H
00025
00026
00027 #ifndef QT_H
00028 #include <qcommonstyle.h>
00029 #endif // QT_H
00030
00031 #include <kstyle.h>
00032 #include <QtGui/QStyleOption>
00033
00034 #ifdef QT_PLUGIN
00035 # define Q_EXPORT_STYLE_LIGHT_V3
00036 #else
00037 # define Q_EXPORT_STYLE_LIGHT_V3 Q_EXPORT
00038 #endif // QT_PLUGIN
00039
00040
00041 class Q_EXPORT_STYLE_LIGHT_V3 LightStyleV3 : public KStyle
00042 {
00043 Q_OBJECT
00044 QStyle *basestyle;
00045
00046 public:
00047 LightStyleV3();
00048 virtual ~LightStyleV3();
00049
00050 void polishPopupMenu( Q3PopupMenu * );
00051
00052 void drawPrimitive(PrimitiveElement, QPainter *, const QRect & ) const;
00053
00054 void drawControl(ControlElement, QPainter *, const QWidget * ) const;
00055 void drawControlMask(ControlElement, QPainter *, const QWidget * ) const;
00056
00057 QRect subElementRect(SubElement, const QWidget *) const;
00058
00059 void drawComplexControl(ComplexControl, QPainter *, const QWidget *, const QRect &,
00060 SCFlags = SC_All, SCFlags = SC_None ) const;
00061
00062 QRect querySubControlMetrics(ComplexControl, const QWidget *, SubControl,
00063 const QStyleOption & = QStyleOption::SO_Default ) const;
00064
00065 SubControl querySubControl(ComplexControl, const QWidget *, const QPoint &,
00066 const QStyleOption &data = QStyleOption::SO_Default ) const;
00067
00068 int pixelMetric(PixelMetric, const QWidget * = 0 ) const;
00069
00070 QSize sizeFromContents(ContentsType, const QWidget *, const QSize &,
00071 const QStyleOption & = QStyleOption::SO_Default ) const;
00072
00073 int styleHint(StyleHint, const QWidget * = 0,
00074 const QStyleOption & = QStyleOption::SO_Default,
00075 QStyleHintReturn * = 0 ) const;
00076
00077 QPixmap standardPixmap( StandardPixmap standardpixmap,
00078 const QWidget* widget = 0,
00079 const QStyleOption& = QStyleOption::SO_Default ) const;
00080 };
00081
00082
00083 #endif // LIGHTSTYLE_V3_H