43 #ifndef QMACSTYLE_MAC_P_H 44 #define QMACSTYLE_MAC_P_H 47 #include <private/qapplication_p.h> 48 #include <private/qcombobox_p.h> 49 #include <private/qmacstylepixmaps_mac_p.h> 50 #include <private/qpaintengine_mac_p.h> 51 #include <private/qpainter_p.h> 52 #include <private/qprintengine_mac_p.h> 53 #include <private/qstylehelper_p.h> 95 #include <QtGui/qgraphicsproxywidget.h> 96 #include <QtGui/qgraphicsview.h> 97 #include <private/qt_cocoa_helpers_mac_p.h> 112 #if (MAC_OS_X_VERSION_MAX_ALLOWED <= MAC_OS_X_VERSION_10_5) 137 #define CT1(c) CT2(c, c) 138 #define CT2(c1, c2) ((uint(c1) << 16) | uint(c2)) 143 #define SIZE(large, small, mini) \ 144 (controlSize == QAquaSizeLarge ? (large) : controlSize == QAquaSizeSmall ? (small) : (mini)) 147 #define return_SIZE(large, small, mini) \ 149 static const int sizes[] = { (large), (small), (mini) }; \ 150 return sizes[controlSize]; \ 187 HIThemeTrackDrawInfo *tdi,
const QWidget *needToRemoveMe);
198 const HIThemeButtonDrawInfo *bdi)
const;
207 static void drawCombobox(
const HIRect &outerBounds,
const HIThemeButtonDrawInfo &bdi,
QPainter *p);
208 static void drawTableHeader(
const HIRect &outerBounds,
bool drawTopBorder,
bool drawLeftBorder,
209 const HIThemeButtonDrawInfo &bdi,
QPainter *p);
211 ThemeButtonKind buttonKindToCheck)
const;
213 const ThemeDrawState tds,
214 HIThemeButtonDrawInfo *bdi)
const;
241 #endif // QMACSTYLE_MAC_P_H The QPainter class performs low-level painting on widgets and other paint devices.
QPixmap generateBackgroundPattern() const
bool addWidget(QWidget *)
void startAnimate(Animates, QWidget *)
#define QT_END_NAMESPACE
This macro expands to.
QPointer< QWidget > widget
QAquaWidgetSize aquaSizeConstrain(const QStyleOption *option, const QWidget *widg, QStyle::ContentsType ct=QStyle::CT_CustomBase, QSize szHint=QSize(-1, -1), QSize *insz=0) const
ComplexControl
This enum describes the available complex controls.
static void drawTableHeader(const HIRect &outerBounds, bool drawTopBorder, bool drawLeftBorder, const HIThemeButtonDrawInfo &bdi, QPainter *p)
static const int PushButtonBottomOffset
static const int MiniButtonH
void removeWidget(QWidget *)
struct QMacStylePrivate::ButtonState buttonState
The QObject class is the base class of all Qt objects.
static const int PushButtonLeftOffset
CFAbsoluteTime defaultButtonStart
#define QT_BEGIN_NAMESPACE
This macro expands to.
The QStyleOption class stores the parameters used by QStyle functions.
ContentsType
This enum describes the available contents types.
bool eventFilter(QObject *, QEvent *)
Filters events if this object has been installed as an event filter for the watched object...
static const int BevelButtonW
static const int SmallButtonH
static void drawCombobox(const HIRect &outerBounds, const HIThemeButtonDrawInfo &bdi, QPainter *p)
bool contentFitsInPushButton(const QStyleOptionButton *btn, HIThemeButtonDrawInfo *bdi, ThemeButtonKind buttonKindToCheck) const
void getSliderInfo(QStyle::ComplexControl cc, const QStyleOptionSlider *slider, HIThemeTrackDrawInfo *tdi, const QWidget *needToRemoveMe)
bool animatable(Animates, const QWidget *) const
static const int PushButtonTopOffset
QSize pushButtonSizeFromContents(const QStyleOptionButton *btn) const
void timerEvent(QTimerEvent *)
This event handler can be reimplemented in a subclass to receive timer events for the object...
The QTimerEvent class contains parameters that describe a timer event.
static QRect comboboxEditBounds(const QRect &outerBounds, const HIThemeButtonDrawInfo &bdi)
void stopAnimate(Animates, QWidget *)
static const int BevelButtonH
void startAnimationTimer()
The QStyleOptionComboBox class is used to describe the parameter for drawing a combobox.
The QRect class defines a rectangle in the plane using integer precision.
static const int PushButtonContentPadding
static ThemeDrawState getDrawState(QStyle::State flags)
QMacStylePrivate(QMacStyle *style)
QPointer< QFocusFrame > focusWidget
bool qt_mac_buttonIsRenderedFlat(const QPushButton *pushButton, const QStyleOptionButton *option)
The QPixmap class is an off-screen image representation that can be used as a paint device...
static const int PushButtonRightOffset
The QStyleOptionSlider class is used to describe the parameters needed for drawing a slider...
The QSize class defines the size of a two-dimensional object using integer point precision.
int animateSpeed(Animates) const
QPointer< QPushButton > defaultButton
void initHIThemePushButton(const QStyleOptionButton *btn, const QWidget *widget, const ThemeDrawState tds, HIThemeButtonDrawInfo *bdi) const
QList< QPointer< QWidget > > progressBars
void initComboboxBdi(const QStyleOptionComboBox *combo, HIThemeButtonDrawInfo *bdi, const QWidget *widget, const ThemeDrawState &tds)
HIRect pushButtonContentBounds(const QStyleOptionButton *btn, const HIThemeButtonDrawInfo *bdi) const
void drawColorlessButton(const HIRect &macRect, HIThemeButtonDrawInfo *bdi, QPainter *p, const QStyleOption *opt) const
The QEvent class is the base class of all event classes.
static HIRect comboboxInnerBounds(const HIRect &outerBounds, int buttonKind)
The QList class is a template class that provides lists.