![]() |
Qt 4.8
|
#include "qmacstyle_mac.h"#include <private/qapplication_p.h>#include <private/qcombobox_p.h>#include <private/qmacstylepixmaps_mac_p.h>#include <private/qpaintengine_mac_p.h>#include <private/qpainter_p.h>#include <private/qprintengine_mac_p.h>#include <qapplication.h>#include <qbitmap.h>#include <qcheckbox.h>#include <qcombobox.h>#include <qdialogbuttonbox.h>#include <qdockwidget.h>#include <qevent.h>#include <qfocusframe.h>#include <qformlayout.h>#include <qgroupbox.h>#include <qhash.h>#include <qheaderview.h>#include <qlayout.h>#include <qlineedit.h>#include <qlistview.h>#include <qmainwindow.h>#include <qmap.h>#include <qmenubar.h>#include <qpaintdevice.h>#include <qpainter.h>#include <qpixmapcache.h>#include <qpointer.h>#include <qprogressbar.h>#include <qpushbutton.h>#include <qradiobutton.h>#include <qrubberband.h>#include <qsizegrip.h>#include <qspinbox.h>#include <qsplitter.h>#include <qstyleoption.h>#include <qtextedit.h>#include <qtextstream.h>#include <qtoolbar.h>#include <qtoolbutton.h>#include <qtreeview.h>#include <qtableview.h>#include <qwizard.h>#include <qdebug.h>#include <qlibrary.h>#include <qdatetimeedit.h>#include <qmath.h>#include <QtGui/qgraphicsproxywidget.h>#include <QtGui/qgraphicsview.h>#include <private/qt_cocoa_helpers_mac_p.h>#include "qmacstyle_mac_p.h"#include <private/qstylehelper_p.h>#include "moc_qmacstyle_mac.cpp"#include "moc_qmacstyle_mac_p.cpp"Go to the source code of this file.
Macros | |
| #define | QMAC_QAQUASTYLE_SIZE_CONSTRAIN |
Typedefs | |
| typedef HIRect *(* | PtrHIShapeGetBounds) (HIShapeRef, HIRect *) |
Enumerations | |
| enum | ScrollBarCutoffType { thumbIndicatorCutoff = 0, scrollButtonsCutoff = 1 } |
Variables | |
| static int | closeButtonSize = 12 |
| static const int | DisclosureOffset = 4 |
| const int | macItemFrame = 2 |
| const int | macItemHMargin = 3 |
| const int | macItemVMargin = 2 |
| const int | macRightBorder = 12 |
| static const QColor | mainWindowGradientBegin (240, 240, 240) |
| static const QColor | mainWindowGradientEnd (200, 200, 200) |
| static PtrHIShapeGetBounds | ptrHIShapeGetBounds = 0 |
| QPixmap * | qt_mac_backgroundPattern = 0 |
| const int | qt_mac_hitheme_version = 0 |
| QPaintDevice * | qt_mac_safe_pdev |
| const ThemeWindowType | QtWinType = kThemeDocumentWindow |
| static const QColor | titlebarGradientActiveBegin (220, 220, 220) |
| static const QColor | titlebarGradientActiveEnd (151, 151, 151) |
| static const QColor | titlebarGradientInactiveBegin (241, 241, 241) |
| static const QColor | titlebarGradientInactiveEnd (207, 207, 207) |
| static const QColor | titlebarSeparatorLineActive (111, 111, 111) |
| static const QColor | titlebarSeparatorLineInactive (131, 131, 131) |
| #define QMAC_QAQUASTYLE_SIZE_CONSTRAIN |
Definition at line 50 of file qmacstyle_mac.mm.
| typedef HIRect*(* PtrHIShapeGetBounds) (HIShapeRef, HIRect *) |
Definition at line 137 of file qmacstyle_mac.mm.
| enum ScrollBarCutoffType |
| Enumerator | |
|---|---|
| thumbIndicatorCutoff | |
| scrollButtonsCutoff | |
Definition at line 1344 of file qmacstyle_mac.mm.
Definition at line 3142 of file qmacstyle_mac.mm.
Referenced by QMacStyle::drawControl().
| void drawTabBase | ( | QPainter * | p, |
| const QStyleOptionTabBarBaseV2 * | tbb, | ||
| const QWidget * | w | ||
| ) |
Definition at line 312 of file qmacstyle_mac.mm.
Referenced by QMacStyle::drawPrimitive().
| void drawTabCloseButton | ( | QPainter * | p, |
| bool | hover, | ||
| bool | active, | ||
| bool | selected | ||
| ) |
Definition at line 151 of file qmacstyle_mac.mm.
Referenced by QMacStyle::drawPrimitive().
| void drawTabShape | ( | QPainter * | p, |
| const QStyleOptionTabV3 * | tabOpt | ||
| ) |
Definition at line 211 of file qmacstyle_mac.mm.
Referenced by QMacStyle::drawControl().
|
inlinestatic |
Definition at line 4650 of file qmacstyle_mac.mm.
Referenced by QMacStyle::drawComplexControl().
|
static |
Definition at line 369 of file qmacstyle_mac.mm.
Referenced by QMacStyle::layoutSpacingImplementation(), QMacStyle::pixelMetric(), and QMacStyle::subElementRect().
|
inlinestatic |
Definition at line 421 of file qmacstyle_mac.mm.
Referenced by QMacStyle::drawControl(), QMacStyle::drawPrimitive(), QMacStyle::sizeFromContents(), and QMacStyle::subElementRect().
|
inlinestatic |
Definition at line 388 of file qmacstyle_mac.mm.
Referenced by qt_aqua_get_known_size().
|
static |
Definition at line 144 of file qmacstyle_mac.mm.
Referenced by drawTabBase(), and rotateTabPainter().
|
static |
Definition at line 511 of file qmacstyle_mac.mm.
Referenced by QMacStylePrivate::aquaSizeConstrain(), and QMacStyle::pixelMetric().
|
static |
Definition at line 801 of file qmacstyle_mac.mm.
Referenced by QMacStylePrivate::aquaSizeConstrain().
|
inlinestatic |
Definition at line 478 of file qmacstyle_mac.mm.
Referenced by QMacStyle::drawComplexControl(), QMacStyle::drawControl(), QMacStyle::drawPrimitive(), drawToolbarButtonArrow(), QMacStylePrivate::getSliderInfo(), QMacStyle::hitTestComplexControl(), QMacStyle::pixelMetric(), QMacStylePrivate::pushButtonContentBounds(), and QMacStyle::subControlRect().
|
static |
Definition at line 504 of file qmacstyle_mac.mm.
Referenced by qt_aqua_get_known_size().
| bool qt_mac_buttonIsRenderedFlat | ( | const QPushButton * | pushButton, |
| const QStyleOptionButton * | option | ||
| ) |
Definition at line 1062 of file qmacstyle_mac.mm.
Referenced by QPushButton::hitButton().
| CGContextRef qt_mac_cg_context | ( | const QPaintDevice * | pdev | ) |
Returns the CoreGraphics CGContextRef of the paint device.
0 is returned if it can't be obtained. It is the caller's responsiblity to CGContextRelease the context when finished using it.
Definition at line 118 of file qpaintdevice_mac.cpp.
Referenced by getTabDirection(), QMacStyle::polish(), and qt_mac_fill_background().
Referenced by getTabDirection().
| QRegion qt_mac_convert_mac_region | ( | HIShapeRef | ) |
| void qt_mac_dispose_rgn | ( | RgnHandle | r | ) |
Referenced by getTabDirection().
Definition at line 1811 of file qmacstyle_mac.mm.
Referenced by fillRegion().
|
inlinestatic |
Definition at line 473 of file qmacstyle_mac.mm.
Referenced by QMacStyle::drawPrimitive().
|
inline |
Definition at line 490 of file qmacstyle_mac.mm.
Referenced by QMacStyle::drawComplexControl(), QMacStyle::drawControl(), QMacStyle::polish(), and QMacStyle::unpolish().
Definition at line 398 of file qmacstyle_mac.mm.
Referenced by QMacStyle::drawComplexControl(), QMacStyle::drawControl(), QMacCocoaAutoReleasePool::handle(), qt_aqua_get_known_size(), qt_mac_menu_merge_action(), QMacStyle::subControlRect(), QMenuBarPrivate::QMacMenuBarPrivate::syncAction(), and QMenuPrivate::QMacMenuPrivate::syncAction().
|
inlinestatic |
Definition at line 484 of file qmacstyle_mac.mm.
Referenced by QMacStylePrivate::contentFitsInPushButton(), QMacStyle::drawComplexControl(), QMacStyle::drawControl(), QMacStyle::subControlRect(), and QMacStyle::subElementRect().
| QRect rotateTabPainter | ( | QPainter * | p, |
| QTabBar::Shape | shape, | ||
| QRect | tabRect | ||
| ) |
Definition at line 188 of file qmacstyle_mac.mm.
Referenced by QMacStyle::drawControl(), drawTabBase(), and drawTabShape().
|
static |
Definition at line 1345 of file qmacstyle_mac.mm.
Referenced by QMacStyle::drawComplexControl(), QMacStyle::hitTestComplexControl(), and QMacStyle::sizeFromContents().
|
static |
Definition at line 4251 of file qmacstyle_mac.mm.
Referenced by QGroupBoxPrivate::calculateFrame(), QToolButtonPrivate::init(), QLabelPrivate::init(), QComboBoxPrivate::init(), QPushButtonPrivate::resetLayoutItemMargins(), QWidgetPrivate::setFont_helper(), QMacStyle::subElementRect(), and QFramePrivate::updateFrameWidth().
|
static |
Definition at line 140 of file qmacstyle_mac.mm.
Referenced by drawTabCloseButton(), QMacStyle::pixelMetric(), and QBalloonTip::QBalloonTip().
|
static |
Definition at line 134 of file qmacstyle_mac.mm.
Referenced by QMacStyle::drawPrimitive(), and QMacStyle::subElementRect().
| const int macItemFrame = 2 |
Definition at line 463 of file qmacstyle_mac.mm.
Referenced by QMacStyle::drawControl().
| const int macItemHMargin = 3 |
Definition at line 464 of file qmacstyle_mac.mm.
Referenced by QMacStyle::drawControl().
| const int macItemVMargin = 2 |
Definition at line 465 of file qmacstyle_mac.mm.
| const int macRightBorder = 12 |
Definition at line 466 of file qmacstyle_mac.mm.
Referenced by QMacStyle::drawControl().
|
static |
Referenced by QMacStyle::drawControl().
|
static |
Referenced by QMacStyle::drawControl().
|
static |
Definition at line 138 of file qmacstyle_mac.mm.
Referenced by QMacStyle::drawComplexControl(), QMacStyle::drawControl(), QMacStyle::pixelMetric(), QMacStylePrivate::QMacStylePrivate(), QMacStyle::subControlRect(), and QMacStyle::subElementRect().
| QPixmap* qt_mac_backgroundPattern = 0 |
Definition at line 468 of file qmacstyle_mac.mm.
Referenced by QMacStyle::~QMacStyle().
| const int qt_mac_hitheme_version = 0 |
Definition at line 462 of file qmacstyle_mac.mm.
Referenced by QMacStyle::drawComplexControl(), QMacStyle::drawControl(), QMacStyle::drawPrimitive(), drawToolbarButtonArrow(), QMacStylePrivate::getSliderInfo(), QMacStyle::hitTestComplexControl(), QMacStylePrivate::initComboboxBdi(), QMacStylePrivate::initHIThemePushButton(), QMacStyle::pixelMetric(), QMacStyle::polish(), QMacStyle::sizeFromContents(), QMacStyle::subControlRect(), and QMacStyle::subElementRect().
| QPaintDevice* qt_mac_safe_pdev |
Definition at line 166 of file qapplication_mac.mm.
Referenced by getTabDirection(), and qt_cleanup().
| const ThemeWindowType QtWinType = kThemeDocumentWindow |
Definition at line 467 of file qmacstyle_mac.mm.
Referenced by QMacStyle::drawComplexControl(), QMacStyle::pixelMetric(), and QMacStyle::subControlRect().
|
static |
Referenced by QMacStyle::drawPrimitive().
|
static |
Referenced by QMacStyle::drawPrimitive().
|
static |
Referenced by QMacStyle::drawPrimitive().
|
static |
Referenced by QMacStyle::drawPrimitive().
|
static |
Referenced by QMacStyle::drawPrimitive().
|
static |
Referenced by QMacStyle::drawPrimitive().