42 #ifndef QMACSTYLE_MAC_H
43 #define QMACSTYLE_MAC_H
53 #if defined(Q_WS_MAC) && !defined(QT_NO_STYLE_MAC)
57 #if defined(QT_PLUGIN)
58 #define Q_GUI_EXPORT_STYLE_MAC
60 #define Q_GUI_EXPORT_STYLE_MAC Q_GUI_EXPORT
65 class QMacStylePrivate;
102 enum FocusRectPolicy { FocusEnabled, FocusDisabled, FocusDefault };
103 static void setFocusRectPolicy(
QWidget *
w, FocusRectPolicy policy);
104 static FocusRectPolicy focusRectPolicy(
const QWidget *
w);
106 enum WidgetSizePolicy { SizeSmall, SizeLarge, SizeMini, SizeDefault
108 , SizeNone = SizeDefault
111 static void setWidgetSizePolicy(
const QWidget *
w, WidgetSizePolicy policy);
112 static WidgetSizePolicy widgetSizePolicy(
const QWidget *
w);
115 const QWidget *widget = 0)
const;
127 const QWidget *widget = 0)
const;
132 const QWidget *widget = 0)
const;
135 Q_DISABLE_COPY(QMacStyle)
148 #endif // QMACSTYLE_H
GLdouble GLdouble GLdouble r
QRect subElementRect(SubElement r, const QStyleOption *opt, const QWidget *widget=0) const
GLXFBConfig Pixmap pixmap
void polish(QApplication *)
QRect subControlRect(ComplexControl cc, const QStyleOptionComplex *opt, SubControl sc, const QWidget *w=0) const
void drawComplexControl(ComplexControl cc, const QStyleOptionComplex *opt, QPainter *p, const QWidget *w=0) const
void drawControl(ControlElement element, const QStyleOption *opt, QPainter *p, const QWidget *w=0) const
QIcon standardIconImplementation(StandardPixmap standardIcon, const QStyleOption *option, const QWidget *widget=0) const
#define QT_BEGIN_NAMESPACE
void drawPrimitive(PrimitiveElement pe, const QStyleOption *opt, QPainter *p, const QWidget *w=0) const
int pixelMetric(PixelMetric pm, const QStyleOption *option=0, const QWidget *widget=0) const
SubControl hitTestComplexControl(ComplexControl cc, const QStyleOptionComplex *opt, const QPoint &pt, const QWidget *w=0) const
virtual bool event(QEvent *)
QPixmap standardPixmap(StandardPixmap standardPixmap, const QStyleOption *opt, const QWidget *widget=0) const
int styleHint(StyleHint hint, const QStyleOption *opt=0, const QWidget *widget=0, QStyleHintReturn *returnData=0) const
QSize sizeFromContents(ContentsType ct, const QStyleOption *opt, const QSize &contentsSize, const QWidget *widget=0) const
void unpolish(QApplication *)
GLubyte GLubyte GLubyte GLubyte w
int layoutSpacingImplementation(QSizePolicy::ControlType control1, QSizePolicy::ControlType control2, Qt::Orientation orientation, const QStyleOption *option=0, const QWidget *widget=0) const
QPixmap generatedIconPixmap(QIcon::Mode iconMode, const QPixmap &pixmap, const QStyleOption *opt) const
virtual QPalette standardPalette() const
virtual void drawItemText(QPainter *painter, const QRect &rect, int flags, const QPalette &pal, bool enabled, const QString &text, QPalette::ColorRole textRole=QPalette::NoRole) const