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