|
| | QMacStylePrivate () |
| |
| | ~QMacStylePrivate () |
| |
| QStyleHelper::WidgetSizePolicy | aquaSizeConstrain (const QStyleOption *option, QStyle::ContentsType ct=QStyle::CT_CustomBase, QSize szHint=QSize(-1, -1), QSize *insz=0) const |
| |
| QStyleHelper::WidgetSizePolicy | effectiveAquaSizeConstrain (const QStyleOption *option, QStyle::ContentsType ct=QStyle::CT_CustomBase, QSize szHint=QSize(-1, -1), QSize *insz=0) const |
| |
| int | animateSpeed (Animates) const |
| |
| void | setAutoDefaultButton (QObject *button) const |
| |
| NSView * | cocoaControl (CocoaControl cocoaControl) const |
| |
| NSCell * | cocoaCell (CocoaControl cocoaControl) const |
| |
| void | setupNSGraphicsContext (CGContextRef cg, bool flipped) const |
| |
| void | restoreNSGraphicsContext (CGContextRef cg) const |
| |
| void | setupVerticalInvertedXform (CGContextRef cg, bool reverse, bool vertical, const CGRect &rect) const |
| |
| void | drawNSViewInRect (NSView *view, const QRectF &rect, QPainter *p, DrawRectBlock drawRectBlock=nil) const |
| |
| void | resolveCurrentNSView (QWindow *window) const |
| |
| void | drawToolbarButtonArrow (const QStyleOption *opt, QPainter *p) const |
| |
| QPainterPath | windowPanelPath (const QRectF &r) const |
| |
| CocoaControlType | windowButtonCocoaControl (QStyle::SubControl sc) const |
| |
| void | tabLayout (const QStyleOptionTab *opt, QRect *textRect, QRect *iconRect) const override |
| |
| | ~QCommonStylePrivate () |
| |
| QString | calculateElidedText (const QString &text, const QTextOption &textOption, const QFont &font, const QRect &textRect, const Qt::Alignment valign, Qt::TextElideMode textElideMode, int flags, bool lastVisibleLineShouldBeElided, QPointF *paintStartPosition) const |
| |
| void | viewItemDrawText (QPainter *p, const QStyleOptionViewItem *option, const QRect &rect) const |
| |
| void | viewItemLayout (const QStyleOptionViewItem *opt, QRect *checkRect, QRect *pixmapRect, QRect *textRect, bool sizehint) const |
| |
| QSize | viewItemSize (const QStyleOptionViewItem *option, int role) const |
| |
| bool | isViewItemCached (const QStyleOptionViewItem &option) const |
| |
| QString | toolButtonElideText (const QStyleOptionToolButton *toolbutton, const QRect &textRect, int flags) const |
| |
| virtual void | tabLayout (const QStyleOptionTab *opt, QRect *textRect, QRect *pixmapRect) const |
| |
| void | ensureExtraData () |
| |
| | QObjectPrivate (int version=QObjectPrivateVersion) |
| |
| virtual | ~QObjectPrivate () |
| |
| void | deleteChildren () |
| |
| void | clearBindingStorage () |
| |
| void | checkForIncompatibleLibraryVersion (int version) const |
| |
| void | setParent_helper (QObject *) |
| |
| void | moveToThread_helper () |
| |
| void | setThreadData_helper (QThreadData *currentData, QThreadData *targetData, QBindingStatus *status) |
| |
| void | _q_reregisterTimers (void *pointer) |
| |
| bool | isSender (const QObject *receiver, const char *signal) const |
| |
| QObjectList | receiverList (const char *signal) const |
| |
| QObjectList | senderList () const |
| |
| void | ensureConnectionData () |
| |
| void | addConnection (int signal, Connection *c) |
| |
| int | signalIndex (const char *signalName, const QMetaObject **meta=nullptr) const |
| |
| bool | isSignalConnected (uint signalIdx, bool checkDeclarative=true) const |
| |
| bool | maybeSignalConnected (uint signalIndex) const |
| |
| bool | isDeclarativeSignalConnected (uint signalIdx) const |
| |
| void | connectNotify (const QMetaMethod &signal) |
| |
| void | disconnectNotify (const QMetaMethod &signal) |
| |
| void | reinitBindingStorageAfterThreadMove () |
| |
| virtual std::string | flagsForDumping () const |
| |
| QtPrivate::QPropertyAdaptorSlotObject * | getPropertyAdaptorSlotObject (const QMetaProperty &property) |
| |
| | QObjectData ()=default |
| |
| virtual | ~QObjectData ()=0 |
| |
| QMetaObject * | dynamicMetaObject () const |
| |
|
| static CGRect | comboboxInnerBounds (const CGRect &outterBounds, const CocoaControl &cocoaWidget) |
| |
| static QRectF | comboboxEditBounds (const QRectF &outterBounds, const CocoaControl &cw) |
| |
| static Direction | tabDirection (QStyleOptionTab::Shape shape) |
| |
| static bool | verticalTabs (QMacStylePrivate::Direction tabDirection) |
| |
| static bool | useFullScreenForPopup () |
| |
| static bool | removeConnection (Connection *c) |
| |
| static QObjectPrivate * | get (QObject *o) |
| |
| static const QObjectPrivate * | get (const QObject *o) |
| |
| template<typename Func1 , typename Func2 > |
| static QMetaObject::Connection | connect (const typename QtPrivate::FunctionPointer< Func1 >::Object *sender, Func1 signal, const typename QtPrivate::FunctionPointer< Func2 >::Object *receiverPrivate, Func2 slot, Qt::ConnectionType type=Qt::AutoConnection) |
| |
| template<typename Func1 , typename Func2 > |
| static bool | disconnect (const typename QtPrivate::FunctionPointer< Func1 >::Object *sender, Func1 signal, const typename QtPrivate::FunctionPointer< Func2 >::Object *receiverPrivate, Func2 slot) |
| |
| static QMetaObject::Connection | connectImpl (const QObject *sender, int signal_index, const QObject *receiver, void **slot, QtPrivate::QSlotObjectBase *slotObj, int type, const int *types, const QMetaObject *senderMetaObject) |
| |
| static QMetaObject::Connection | connect (const QObject *sender, int signal_index, QtPrivate::QSlotObjectBase *slotObj, Qt::ConnectionType type) |
| |
| static QMetaObject::Connection | connect (const QObject *sender, int signal_index, const QObject *receiver, QtPrivate::QSlotObjectBase *slotObj, Qt::ConnectionType type) |
| |
| static bool | disconnect (const QObject *sender, int signal_index, void **slot) |
| |
| static bool | disconnect (const QObject *sender, int signal_index, const QObject *receiver, void **slot) |
| |
Definition at line 75 of file qquickmacstyle_mac_p_p.h.
Compute the textRect and the pixmapRect from the opt rect
Uses the same computation than in QTabBar::tabSizeHint
Reimplemented from QQC2::QCommonStylePrivate.
Definition at line 1014 of file qquickmacstyle_mac.mm.
References QIcon::actualSize(), Qt::AlignCenter, QFontMetrics::boundingRect(), QStyleOption::direction, QIcon::Disabled, QStyleOption::fontMetrics, QSize::height(), QStyleOptionButton::icon, iconSize, QStyleOptionButton::iconSize, QIcon::isNull(), QIcon::Normal, QIcon::Off, QIcon::On, opt, QStyle::PM_SmallIconSize, QStyle::PM_TabBarTabHSpace, QStyle::PM_TabBarTabShiftHorizontal, QStyle::PM_TabBarTabShiftVertical, QStyle::PM_TabBarTabVSpace, Q_ASSERT, qMin(), QStyleOption::rect, QStyleOption::state, QStyle::State_Enabled, QStyle::State_Selected, QStyleOptionButton::text, textRect, Qt::TextShowMnemonic, tr, verticalTabs(), QRect::width(), and QSize::width().