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 #include <Q3PopupMenu>
00029 #include <QtGui/QStyleOption>
00030
00031 #ifdef QT_PLUGIN
00032 # define Q_EXPORT_STYLE_LIGHT_V2
00033 #else
00034 # define Q_EXPORT_STYLE_LIGHT_V2 Q_EXPORT
00035 #endif // QT_PLUGIN
00036
00037
00038 class Q_EXPORT_STYLE_LIGHT_V2 LightStyleV2 : public KStyle
00039 {
00040 Q_OBJECT
00041
00042 public:
00043 LightStyleV2();
00044 virtual ~LightStyleV2();
00045
00046 void polishPopupMenu( Q3PopupMenu * );
00047
00048 void drawPrimitive(PrimitiveElement, const QStyleOption *, QPainter *, const QWidget * widget = 0 ) const;
00049
00050 void drawControl(ControlElement, const QStyleOption *, QPainter *, const QWidget * widget = 0 ) const;
00051 void drawControlMask(ControlElement, QPainter *, const QWidget *, const QRect &,
00052 const QStyleOption & = QStyleOption::SO_Default) const;
00053
00054 QRect subElementRect(SubElement, const QStyleOption * option, const QWidget *) const;
00055
00056 void drawComplexControl(ComplexControl, QPainter *, const QWidget *,
00057 SCFlags = SC_All, SCFlags = SC_None ) const;
00058
00059 QRect querySubControlMetrics(ComplexControl, const QWidget *, SubControl ) const;
00060
00061 SubControl querySubControl(ComplexControl, const QWidget *, const QPoint & ) const;
00062
00063 int pixelMetric(PixelMetric, const QWidget * = 0 ) const;
00064
00065 QSize sizeFromContents(ContentsType, const QWidget *, const QSize & ) const;
00066
00067 int styleHint(StyleHint, const QWidget * = 0,
00068 QStyleHintReturn * = 0 ) const;
00069
00070 QPixmap standardPixmap( StandardPixmap standardpixmap,
00071 const QWidget* widget = 0 ) const;
00072 };
00073
00074
00075 #endif // LIGHTSTYLE_V2_H