19#include <QtGui/qtguiglobal.h>
21#if defined(QT_WIDGETS_LIB) && defined(QT_QUICK_LIB)
22# error "Cannot use QtGui Mac style with both Widgets and Quick"
25#if defined(QT_WIDGETS_LIB)
26# define OPTIONAL_WIDGET_ARGUMENT , const QWidget *w = nullptr
27# define FORWARD_OPTIONAL_WIDGET_ARGUMENT , w
29# define OPTIONAL_WIDGET_ARGUMENT
30# define FORWARD_OPTIONAL_WIDGET_ARGUMENT
33#include <AppKit/NSApplication.h>
40
41
42
43
44
45
46
47
48
49
50template <
typename Style,
typename StyleOption,
typename StyleOptionComplex>
57 [NSApp.effectiveAppearance performAsCurrentDrawingAppearance:^{
58 Style::drawPrimitive(pe, opt, p
66 [NSApp.effectiveAppearance performAsCurrentDrawingAppearance:^{
67 Style::drawControl(element, opt, p
75 [NSApp.effectiveAppearance performAsCurrentDrawingAppearance:^{
76 Style::drawComplexControl(cc, opt, p
void drawPrimitive(typename Style::PrimitiveElement pe, const StyleOption *opt, QPainter *p OPTIONAL_WIDGET_ARGUMENT) const override
void drawComplexControl(typename Style::ComplexControl cc, const StyleOptionComplex *opt, QPainter *p OPTIONAL_WIDGET_ARGUMENT) const override
void drawControl(typename Style::ControlElement element, const StyleOption *opt, QPainter *p OPTIONAL_WIDGET_ARGUMENT) const override
#define OPTIONAL_WIDGET_ARGUMENT
#define FORWARD_OPTIONAL_WIDGET_ARGUMENT