![]() |
Qt 4.8
|
#include <qtabbar_p.h>
Classes | |
| struct | Tab |
Public Functions | |
| void | _q_closeTab () |
| void | _q_scrollTabs () |
| Tab * | at (int index) |
| const Tab * | at (int index) const |
| int | calculateNewPosition (int from, int to, int index) const |
| int | extraWidth () const |
| int | indexAtPos (const QPoint &p) const |
| void | init () |
| void | layoutTab (int index) |
| void | layoutTabs () |
| void | layoutWidgets (int start=0) |
| void | makeVisible (int index) |
| QSize | minimumTabSizeHint (int index) |
| void | moveTab (int index, int offset) |
| em>Reimplemented Function More... | |
| void | moveTabFinished (int index) |
| em>Reimplemented Function More... | |
| QTabBarPrivate () | |
| void | refresh () |
| void | setCurrentNextEnabledIndex (int offset) |
| em>Reimplemented Function More... | |
| void | setupMovableTab () |
| void | slide (int from, int to) |
| void | updateMacBorderMetrics () |
| bool | validIndex (int index) const |
Public Functions inherited from QWidgetPrivate | |
| void | _q_showIfNotHidden () |
| virtual void | aboutToDestroy () |
| void | activateChildLayoutsRecursively () |
| QSize | adjustedSize () const |
| void | adjustQuitOnCloseAttribute () |
| QInputContext * | assignedInputContext () const |
| QPainter * | beginSharedPainter () |
| QWidget * | childAt_helper (const QPoint &, bool) const |
| QWidget * | childAtRecursiveHelper (const QPoint &p, bool, bool includeFrame=false) const |
| QRect | clipRect () const |
| QRegion | clipRegion () const |
| void | clipToEffectiveMask (QRegion ®ion) const |
| bool | close_helper (CloseMode mode) |
| void | create_sys (WId window, bool initializeWindow, bool destroyOldWindow) |
| QWindowSurface * | createDefaultWindowSurface () |
| QWindowSurface * | createDefaultWindowSurface_sys () |
| void | createExtra () |
| Creates the widget extra data. More... | |
| void | createRecursively () |
| void | createSysExtra () |
| void | createTLExtra () |
| void | createTLSysExtra () |
| void | createWinId (WId id=0) |
| void | deactivateWidgetCleanup () |
| void | deleteExtra () |
| Deletes the widget extra data. More... | |
| void | deleteSysExtra () |
| void | deleteTLSysExtra () |
| void | drawWidget (QPaintDevice *pdev, const QRegion &rgn, const QPoint &offset, int flags, QPainter *sharedPainter=0, QWidgetBackingStore *backingStore=0) |
| QWidget * | effectiveFocusWidget () |
| QRect | effectiveRectFor (const QRect &rect) const |
| bool | endSharedPainter () |
| void | enforceNativeChildren () |
| QWExtra * | extraData () const |
| QRect | frameStrut () const |
| void | getLayoutItemMargins (int *left, int *top, int *right, int *bottom) const |
| const QRegion & | getOpaqueChildren () const |
| void | handleSoftwareInputPanel (Qt::MouseButton button, bool clickCausedFocus) |
| virtual bool | hasHeightForWidth () const |
| void | hide_helper () |
| void | hide_sys () |
| Platform-specific part of QWidget::hide(). More... | |
| void | hideChildren (bool spontaneous) |
| void | inheritStyle () |
| void | init (QWidget *desktopWidget, Qt::WindowFlags f) |
| QInputContext * | inputContext () const |
| void | invalidateBuffer (const QRegion &) |
| Invalidates the rgn (in widget's coordinates) of the backing store, i.e. More... | |
| void | invalidateBuffer (const QRect &) |
| This function is equivalent to calling invalidateBuffer(QRegion(rect), ...), but is more efficient as it eliminates QRegion operations/allocations and can use the rect more precisely for additional cut-offs. More... | |
| void | invalidateBuffer_resizeHelper (const QPoint &oldPos, const QSize &oldSize) |
| Invalidates the buffer when the widget is resized. More... | |
| void | invalidateGraphicsEffectsRecursively () |
| bool | isAboutToShow () const |
| bool | isBackgroundInherited () const |
| bool | isOverlapped (const QRect &) const |
| void | lower_sys () |
| QPoint | mapFromGlobal (const QPoint &pos) const |
| QPoint | mapToGlobal (const QPoint &pos) const |
| QWidgetBackingStore * | maybeBackingStore () const |
| QTLWExtra * | maybeTopData () const |
| void | moveRect (const QRect &, int dx, int dy) |
| bool | nativeChildrenForced () const |
| QFont | naturalWidgetFont (uint inheritedMask) const |
| QPalette | naturalWidgetPalette (uint inheritedMask) const |
| Returns the palette that the widget w inherits from its ancestors and QApplication::palette. More... | |
| void | paintBackground (QPainter *, const QRegion &, int flags=DrawAsRoot) const |
| bool | paintOnScreen () const |
| void | paintSiblingsRecursive (QPaintDevice *pdev, const QObjectList &children, int index, const QRegion &rgn, const QPoint &offset, int flags, QPainter *sharedPainter, QWidgetBackingStore *backingStore) |
| bool | pointInsideRectAndMask (const QPoint &) const |
| QRegion | prepareToRender (const QRegion ®ion, QWidget::RenderFlags renderFlags) |
| void | propagatePaletteChange () |
| Propagate this widget's palette to all children, except style sheet widgets, and windows that don't enable window propagation (palettes don't normally propagate to windows). More... | |
| QWidgetPrivate (int version=QObjectPrivateVersion) | |
| void | raise_sys () |
| QPaintDevice * | redirected (QPoint *offset) const |
| void | registerDropSite (bool) |
| void | render (QPaintDevice *target, const QPoint &targetOffset, const QRegion &sourceRegion, QWidget::RenderFlags renderFlags, bool readyToRender) |
| void | render_helper (QPainter *painter, const QPoint &targetOffset, const QRegion &sourceRegion, QWidget::RenderFlags renderFlags) |
| void | repaint_sys (const QRegion &rgn) |
| void | reparentFocusWidgets (QWidget *oldtlw) |
| void | resolveFont () |
| Determine which font is implicitly imposed on this widget by its ancestors and QApplication::font, resolve this against its own font (attributes from the implicit font are copied over). More... | |
| void | resolveLayoutDirection () |
| void | resolveLocale () |
| void | resolvePalette () |
| Determine which palette is inherited from this widget's ancestors and QApplication::palette, resolve this against this widget's palette (attributes from the inherited palette are copied over this widget's palette). More... | |
| void | restoreRedirected () |
| void | scroll_sys (int dx, int dy) |
| void | scroll_sys (int dx, int dy, const QRect &r) |
| void | scrollChildren (int dx, int dy) |
| void | scrollRect (const QRect &, int dx, int dy) |
| void | sendPendingMoveAndResizeEvents (bool recursive=false, bool disableUpdates=false) |
| void | sendStartupMessage (const char *message) const |
| Platform-specific part of QWidget::show(). More... | |
| void | setConstraints_sys () |
| void | setCursor_sys (const QCursor &cursor) |
| void | setDirtyOpaqueRegion () |
| void | setEnabled_helper (bool) |
| void | setFocus_sys () |
| void | setFont_helper (const QFont &font) |
| void | setGeometry_sys (int, int, int, int, bool) |
| void | setLayoutDirection_helper (Qt::LayoutDirection) |
| void | setLayoutItemMargins (int left, int top, int right, int bottom) |
| void | setLayoutItemMargins (QStyle::SubElement element, const QStyleOption *opt=0) |
| void | setLocale_helper (const QLocale &l, bool forceUpdate=false) |
| void | setMask_sys (const QRegion &) |
| bool | setMaximumSize_helper (int &maxw, int &maxh) |
| bool | setMinimumSize_helper (int &minw, int &minh) |
| void | setModal_sys () |
| void | setNetWmWindowTypes () |
| void | setOpaque (bool opaque) |
| void | setPalette_helper (const QPalette &) |
| void | setParent_sys (QWidget *parent, Qt::WindowFlags) |
| void | setRedirected (QPaintDevice *replacement, const QPoint &offset) |
| void | setSharedPainter (QPainter *painter) |
| void | setStyle_helper (QStyle *newStyle, bool propagate, bool metalHack=false) |
| void | setUpdatesEnabled_helper (bool) |
| void | setWindowFilePath_helper (const QString &filePath) |
| void | setWindowIcon_helper () |
| void | setWindowIcon_sys (bool forceReset=false) |
| void | setWindowIconText_helper (const QString &cap) |
| void | setWindowIconText_sys (const QString &cap) |
| void | setWindowOpacity_sys (qreal opacity) |
| void | setWindowRole () |
| void | setWindowTitle_helper (const QString &cap) |
| void | setWindowTitle_sys (const QString &cap) |
| void | setWinId (WId) |
| QPainter * | sharedPainter () const |
| void | show_helper () |
| void | show_recursive () |
| Makes the widget visible in the isVisible() meaning of the word. More... | |
| void | show_sys () |
| Platform-specific part of QWidget::show(). More... | |
| void | showChildren (bool spontaneous) |
| void | stackUnder_sys (QWidget *) |
| void | subtractOpaqueChildren (QRegion &rgn, const QRect &clipRect) const |
| void | subtractOpaqueSiblings (QRegion &source, bool *hasDirtySiblingsAbove=0, bool alsoNonOpaque=false) const |
| void | syncBackingStore () |
| void | syncBackingStore (const QRegion ®ion) |
| QTLWExtra * | topData () const |
| void | unsetCursor_sys () |
| void | updateFont (const QFont &) |
| Assign font to this widget, and propagate it to all children, except style sheet widgets (handled differently) and windows that don't enable window propagation. More... | |
| void | updateFrameStrut () |
| Computes the frame rectangle when needed. More... | |
| void | updateGeometry_helper (bool forceUpdate) |
| void | updateIsOpaque () |
| void | updateIsTranslucent () |
| void | updateSystemBackground () |
| void | updateX11AcceptFocus () |
| void | x11UpdateIsOpaque () |
| ~QWidgetPrivate () | |
Public Functions inherited from QObjectPrivate | |
| void | _q_reregisterTimers (void *pointer) |
| void | addConnection (int signal, Connection *c) |
| void | cleanConnectionLists () |
| void | connectNotify (const char *signal) |
| void | deleteChildren () |
| void | disconnectNotify (const char *signal) |
| bool | isSender (const QObject *receiver, const char *signal) const |
| bool | isSignalConnected (uint signalIdx) const |
| Returns true if the signal with index signal_index from object sender is connected. More... | |
| void | moveToThread_helper () |
| QObjectPrivate (int version=QObjectPrivateVersion) | |
| QObjectList | receiverList (const char *signal) const |
| QObjectList | senderList () const |
| void | setParent_helper (QObject *) |
| void | setThreadData_helper (QThreadData *currentData, QThreadData *targetData) |
| int | signalIndex (const char *signalName) const |
| Returns the signal index used in the internal connectionLists vector. More... | |
| virtual | ~QObjectPrivate () |
Public Functions inherited from QObjectData | |
| virtual | ~QObjectData ()=0 |
Static Public Functions | |
| static void | initStyleBaseOption (QStyleOptionTabBarBaseV2 *optTabBase, QTabBar *tabbar, QSize size) |
Static Public Functions inherited from QWidgetPrivate | |
| static void | adjustFlags (Qt::WindowFlags &flags, QWidget *w=0) |
| static QGraphicsProxyWidget * | nearestGraphicsProxyWidget (const QWidget *origin) |
| Finds the nearest widget embedded in a graphics proxy widget along the chain formed by this widget and its ancestors. More... | |
| static int | pointToRect (const QPoint &p, const QRect &r) |
| static QRect | screenGeometry (const QWidget *widget) |
Static Public Functions inherited from QObjectPrivate | |
| static void | clearGuards (QObject *) |
| static QObjectPrivate * | get (QObject *o) |
| static void | resetCurrentSender (QObject *receiver, Sender *currentSender, Sender *previousSender) |
| static Sender * | setCurrentSender (QObject *receiver, Sender *sender) |
| static void | signalSignature (const QMetaMethod &signal, QVarLengthArray< char > *result) |
Additional Inherited Members | |
Public Types inherited from QWidgetPrivate | |
| enum | CloseMode { CloseNoEvent, CloseWithEvent, CloseWithSpontaneousEvent } |
| enum | Direction { DirectionNorth = 0x01, DirectionEast = 0x10, DirectionSouth = 0x02, DirectionWest = 0x20 } |
| enum | DrawWidgetFlags { DrawAsRoot = 0x01, DrawPaintOnScreen = 0x02, DrawRecursive = 0x04, DrawInvisible = 0x08, DontSubtractOpaqueChildren = 0x10, DontSetCompositionMode = 0x20, DontDrawOpaqueChildren = 0x40, DontDrawNativeChildren = 0x80 } |
Public Types inherited from QObjectPrivate | |
| typedef void(* | StaticMetaCallFunction) (QObject *, QMetaObject::Call, int, void **) |
Static Public Variables inherited from QWidgetPrivate | |
| static QWidgetSet * | allWidgets = 0 |
| static int | instanceCounter = 0 |
| static QWidget * | keyboardGrabber = 0 |
| static QWidgetMapper * | mapper = 0 |
| static int | maxInstances = 0 |
| static QWidget * | mouseGrabber = 0 |
Definition at line 72 of file qtabbar_p.h.
|
inline |
Definition at line 76 of file qtabbar_p.h.
| void QTabBarPrivate::_q_closeTab | ( | ) |
Definition at line 655 of file qtabbar.cpp.
| void QTabBarPrivate::_q_scrollTabs | ( | ) |
Definition at line 678 of file qtabbar.cpp.
Referenced by init().
| QTabBarPrivate::Tab * QTabBarPrivate::at | ( | int | index | ) |
Definition at line 385 of file qtabbar.cpp.
| const QTabBarPrivate::Tab * QTabBarPrivate::at | ( | int | index | ) | const |
Definition at line 390 of file qtabbar.cpp.
| int QTabBarPrivate::calculateNewPosition | ( | int | from, |
| int | to, | ||
| int | index | ||
| ) | const |
Definition at line 1654 of file qtabbar.cpp.
| int QTabBarPrivate::extraWidth | ( | ) | const |
Definition at line 354 of file qtabbar.cpp.
Referenced by _q_scrollTabs(), layoutTabs(), and makeVisible().
| int QTabBarPrivate::indexAtPos | ( | const QPoint & | p | ) | const |
Definition at line 395 of file qtabbar.cpp.
| void QTabBarPrivate::init | ( | ) |
Definition at line 361 of file qtabbar.cpp.
|
inlinestatic |
Definition at line 208 of file qtabbar_p.h.
Referenced by QTabWidget::paintEvent(), and QTabBar::paintEvent().
| void QTabBarPrivate::layoutTab | ( | int | index | ) |
Definition at line 611 of file qtabbar.cpp.
Referenced by layoutWidgets().
| void QTabBarPrivate::layoutTabs | ( | ) |
Definition at line 406 of file qtabbar.cpp.
Referenced by refresh().
| void QTabBarPrivate::layoutWidgets | ( | int | start = 0 | ) |
| void QTabBarPrivate::makeVisible | ( | int | index | ) |
Definition at line 585 of file qtabbar.cpp.
Referenced by _q_scrollTabs(), and refresh().
| QSize QTabBarPrivate::minimumTabSizeHint | ( | int | index | ) |
Definition at line 1373 of file qtabbar.cpp.
Referenced by layoutTabs(), and validIndex().
| void QTabBarPrivate::moveTab | ( | int | index, |
| int | offset | ||
| ) |
em>Reimplemented Function
Definition at line 1768 of file qtabbar.cpp.
Referenced by QTabBarPrivate::Tab::TabBarAnimation::updateCurrentValue().
| void QTabBarPrivate::moveTabFinished | ( | int | index | ) |
em>Reimplemented Function
Definition at line 1936 of file qtabbar.cpp.
Referenced by refresh(), QTabBarPrivate::Tab::startAnimation(), and QTabBarPrivate::Tab::TabBarAnimation::updateState().
| void QTabBarPrivate::refresh | ( | ) |
Definition at line 720 of file qtabbar.cpp.
| void QTabBarPrivate::setCurrentNextEnabledIndex | ( | int | offset | ) |
| void QTabBarPrivate::setupMovableTab | ( | ) |
Definition at line 1896 of file qtabbar.cpp.
| void QTabBarPrivate::slide | ( | int | from, |
| int | to | ||
| ) |
Definition at line 1750 of file qtabbar.cpp.
| void QTabBarPrivate::updateMacBorderMetrics | ( | ) |
Definition at line 85 of file qtabbar.cpp.
|
inline |
| bool QTabBarPrivate::closeButtonOnTabs |
Definition at line 194 of file qtabbar_p.h.
| int QTabBarPrivate::currentIndex |
Definition at line 86 of file qtabbar_p.h.
Referenced by indexAtPos(), and refresh().
| bool QTabBarPrivate::documentMode |
Definition at line 201 of file qtabbar_p.h.
Referenced by updateMacBorderMetrics().
| bool QTabBarPrivate::dragInProgress |
Definition at line 200 of file qtabbar_p.h.
| QPoint QTabBarPrivate::dragStartPosition |
Definition at line 197 of file qtabbar_p.h.
| bool QTabBarPrivate::drawBase |
Definition at line 90 of file qtabbar_p.h.
| Qt::TextElideMode QTabBarPrivate::elideMode |
Definition at line 188 of file qtabbar_p.h.
Referenced by init().
| bool QTabBarPrivate::elideModeSetByUser |
Definition at line 189 of file qtabbar_p.h.
| bool QTabBarPrivate::expanding |
Definition at line 193 of file qtabbar_p.h.
Referenced by layoutTabs().
| QRect QTabBarPrivate::hoverRect |
Definition at line 177 of file qtabbar_p.h.
| QSize QTabBarPrivate::iconSize |
Definition at line 187 of file qtabbar_p.h.
Referenced by QTabBar::initStyleOption().
| bool QTabBarPrivate::layoutDirty |
Definition at line 89 of file qtabbar_p.h.
Referenced by layoutTabs(), and refresh().
| QToolButton* QTabBarPrivate::leftB |
Definition at line 171 of file qtabbar_p.h.
Referenced by _q_scrollTabs(), QAccessibleTabBar::button(), init(), layoutTabs(), and makeVisible().
| bool QTabBarPrivate::movable |
Definition at line 199 of file qtabbar_p.h.
Referenced by refresh().
| QWidget* QTabBarPrivate::movingTab |
Definition at line 203 of file qtabbar_p.h.
| bool QTabBarPrivate::paintWithOffsets |
Definition at line 198 of file qtabbar_p.h.
Referenced by layoutTab().
| int QTabBarPrivate::pressedIndex |
Definition at line 87 of file qtabbar_p.h.
Referenced by layoutTab(), and refresh().
| int QTabBarPrivate::previousPressedIndex |
Definition at line 205 of file qtabbar_p.h.
| QToolButton* QTabBarPrivate::rightB |
Definition at line 170 of file qtabbar_p.h.
Referenced by _q_scrollTabs(), QAccessibleTabBar::button(), init(), layoutTabs(), and makeVisible().
| int QTabBarPrivate::scrollOffset |
Definition at line 91 of file qtabbar_p.h.
Referenced by _q_scrollTabs(), layoutTabs(), and makeVisible().
| QTabBar::SelectionBehavior QTabBarPrivate::selectionBehaviorOnRemove |
Definition at line 195 of file qtabbar_p.h.
| QTabBar::Shape QTabBarPrivate::shape |
Definition at line 88 of file qtabbar_p.h.
Referenced by _q_scrollTabs(), layoutTab(), layoutTabs(), and makeVisible().
Definition at line 153 of file qtabbar_p.h.
Referenced by _q_closeTab(), _q_scrollTabs(), at(), indexAtPos(), layoutTab(), layoutTabs(), makeVisible(), QTabBarPrivate::Tab::startAnimation(), QTabBarPrivate::Tab::TabBarAnimation::updateCurrentValue(), and QTabBarPrivate::Tab::TabBarAnimation::updateState().
| bool QTabBarPrivate::useScrollButtons |
Definition at line 190 of file qtabbar_p.h.
Referenced by init(), and layoutTabs().
| bool QTabBarPrivate::useScrollButtonsSetByUser |
Definition at line 191 of file qtabbar_p.h.