Qt
Internal/Contributor docs for the Qt SDK. <b>Note:</b> These are NOT official API docs; those are found <a href='https://doc.qt.io/'>here</a>.
Loading...
Searching...
No Matches
QTabBarPrivate Class Reference

#include <qtabbar_p.h>

+ Inheritance diagram for QTabBarPrivate:
+ Collaboration diagram for QTabBarPrivate:

Classes

struct  Tab
 

Public Member Functions

 QTabBarPrivate ()
 
 ~QTabBarPrivate ()
 
void calculateFirstLastVisible (int index, bool visible, bool remove)
 
int selectNewCurrentIndexFrom (int currentIndex)
 
int calculateNewPosition (int from, int to, int index) const
 
void slide (int from, int to)
 
void init ()
 
Tabat (int index)
 
const Tabat (int index) const
 
int indexAtPos (const QPoint &p) const
 
bool isAnimated () const
 
bool validIndex (int index) const
 
void setCurrentNextEnabledIndex (int offset)
 \reimp
 
void scrollTabs ()
 
void closeTab ()
 
void moveTab (int index, int offset)
 
void moveTabFinished (int index)
 
void refresh ()
 
void layoutTabs ()
 
void layoutWidgets (int start=0)
 
void layoutTab (int index)
 
void updateMacBorderMetrics ()
 
bool isTabInMacUnifiedToolbarArea () const
 
void setupMovableTab ()
 
void autoHideTabs ()
 
QRect normalizedScrollRect (int index=-1)
 
int hoveredTabIndex () const
 
void initBasicStyleOption (QStyleOptionTab *option, int tabIndex) const
 
void makeVisible (int index)
 
void killSwitchTabTimer ()
 
- Public Member Functions inherited from QWidgetPrivate
 QWidgetPrivate (int version=QObjectPrivateVersion)
 
 ~QWidgetPrivate ()
 
QWExtraextraData () const
 
QTLWExtratopData () const
 
QTLWExtramaybeTopData () const
 
QPaintersharedPainter () const
 
void setSharedPainter (QPainter *painter)
 
QWidgetRepaintManagermaybeRepaintManager () const
 
QRhirhi () const
 
QWindowwindowHandle (WindowHandleMode mode=WindowHandleMode::Direct) const
 
QWindow_q_closestWindowHandle () const
 
QScreenassociatedScreen () const
 
template<typename T >
void repaint (T t)
 
template<typename T >
void update (T t)
 
void init (QWidget *desktopWidget, Qt::WindowFlags f)
 
void create ()
 
void createRecursively ()
 
void createWinId ()
 
bool setScreenForPoint (const QPoint &pos)
 
bool setScreen (QScreen *screen)
 
void createTLExtra ()
 
void createExtra ()
 
void deleteExtra ()
 
void createSysExtra ()
 
void deleteSysExtra ()
 
void createTLSysExtra ()
 
void deleteTLSysExtra ()
 
void updateSystemBackground ()
 
void propagatePaletteChange ()
 
void setPalette_helper (const QPalette &)
 
void resolvePalette ()
 
QPalette naturalWidgetPalette (QPalette::ResolveMask inheritedMask) const
 
void setMask_sys (const QRegion &)
 
void raise_sys ()
 
void lower_sys ()
 
void stackUnder_sys (QWidget *)
 
QWidgetdeepestFocusProxy () const
 
void setFocus_sys ()
 
void updateFocusChild ()
 
void updateFont (const QFont &)
 
void setFont_helper (const QFont &font)
 
QFont localFont () const
 
void resolveFont ()
 
QFont naturalWidgetFont (uint inheritedMask) const
 
void setLayoutDirection_helper (Qt::LayoutDirection)
 
void resolveLayoutDirection ()
 
void setLocale_helper (const QLocale &l, bool forceUpdate=false)
 
void resolveLocale ()
 
void setStyle_helper (QStyle *newStyle, bool propagate)
 
void inheritStyle ()
 
void setUpdatesEnabled_helper (bool)
 
bool updateBrushOrigin (QPainter *, const QBrush &brush) const
 
void paintBackground (QPainter *, const QRegion &, DrawWidgetFlags flags=DrawAsRoot) const
 
bool isAboutToShow () const
 The graphicsEffect function returns a pointer to the widget's graphics effect.
 
QRegion prepareToRender (const QRegion &region, QWidget::RenderFlags renderFlags)
 
void render_helper (QPainter *painter, const QPoint &targetOffset, const QRegion &sourceRegion, QWidget::RenderFlags renderFlags)
 
void render (QPaintDevice *target, const QPoint &targetOffset, const QRegion &sourceRegion, QWidget::RenderFlags renderFlags)
 
void drawWidget (QPaintDevice *pdev, const QRegion &rgn, const QPoint &offset, DrawWidgetFlags flags, QPainter *sharedPainter=nullptr, QWidgetRepaintManager *repaintManager=nullptr)
 
void sendPaintEvent (const QRegion &toBePainted)
 
void paintSiblingsRecursive (QPaintDevice *pdev, const QObjectList &children, int index, const QRegion &rgn, const QPoint &offset, DrawWidgetFlags flags, QPainter *sharedPainter, QWidgetRepaintManager *repaintManager)
 
bool shouldPaintOnScreen () const
 
void paintOnScreen (const QRegion &rgn)
 
QRect clipRect () const
 
QRegion clipRegion () const
 
void setSystemClip (QPaintEngine *paintEngine, qreal devicePixelRatio, const QRegion &region)
 
void subtractOpaqueChildren (QRegion &rgn, const QRect &clipRect) const
 
void subtractOpaqueSiblings (QRegion &source, bool *hasDirtySiblingsAbove=nullptr, bool alsoNonOpaque=false) const
 
void clipToEffectiveMask (QRegion &region) const
 
void updateIsOpaque ()
 
void setOpaque (bool opaque)
 
void updateIsTranslucent ()
 
const QRegiongetOpaqueChildren () const
 
void setDirtyOpaqueRegion ()
 
bool close ()
 
bool handleClose (CloseMode mode)
 
void setWindowIcon_helper ()
 
void setWindowIcon_sys ()
 
void setWindowOpacity_sys (qreal opacity)
 
void adjustQuitOnCloseAttribute ()
 
void scrollChildren (int dx, int dy)
 
void moveRect (const QRect &, int dx, int dy)
 
void scrollRect (const QRect &, int dx, int dy)
 
void invalidateBackingStore_resizeHelper (const QPoint &oldPos, const QSize &oldSize)
 Invalidates the backing store when the widget is resized.
 
template<class T >
void invalidateBackingStore (const T &)
 
QRegion overlappedRegion (const QRect &rect, bool breakAfterFirst=false) const
 
bool isOverlapped (const QRect &rect) const
 
void syncBackingStore ()
 
void syncBackingStore (const QRegion &region)
 
bool shouldDiscardSyncRequest () const
 
void updateWidgetTransform (QEvent *event)
 
void reparentFocusWidgets (QWidget *oldtlw)
 
void setWinId (WId)
 
void showChildren (bool spontaneous)
 
void hideChildren (bool spontaneous)
 
void setParent_sys (QWidget *parent, Qt::WindowFlags)
 
void reparentWidgetWindows (QWidget *parentWithWindow, Qt::WindowFlags windowFlags={})
 
void reparentWidgetWindowChildren (QWidget *parentWithWindow)
 
void scroll_sys (int dx, int dy)
 
void scroll_sys (int dx, int dy, const QRect &r)
 
void deactivateWidgetCleanup ()
 
void setGeometry_sys (int, int, int, int, bool)
 
void fixPosIncludesFrame ()
 
void sendPendingMoveAndResizeEvents (bool recursive=false, bool disableUpdates=false)
 
void activateChildLayoutsRecursively ()
 
void show_recursive ()
 
void show_helper ()
 
void show_sys ()
 
void hide_sys ()
 
void hide_helper ()
 
bool isExplicitlyHidden () const
 
void _q_showIfNotHidden ()
 
void setVisible (bool)
 
void setEnabled_helper (bool)
 
void updateFrameStrut ()
 
QRect frameStrut () const
 
void setWindowIconText_sys (const QString &cap)
 
void setWindowIconText_helper (const QString &cap)
 
void setWindowTitle_sys (const QString &cap)
 
void setWindowFilePath_sys (const QString &filePath)
 
void setCursor_sys (const QCursor &cursor)
 
void unsetCursor_sys ()
 
void setWindowTitle_helper (const QString &cap)
 
void setWindowFilePath_helper (const QString &filePath)
 
void setWindowModified_helper ()
 
virtual void setWindowFlags (Qt::WindowFlags windowFlags)
 
bool setMinimumSize_helper (int &minw, int &minh)
 
bool setMaximumSize_helper (int &maxw, int &maxh)
 
void setConstraints_sys ()
 
bool pointInsideRectAndMask (const QPoint &) const
 
QWidgetchildAt_helper (const QPoint &, bool) const
 
QWidgetchildAtRecursiveHelper (const QPoint &p, bool) const
 
void updateGeometry_helper (bool forceUpdate)
 
void getLayoutItemMargins (int *left, int *top, int *right, int *bottom) const
 
void setLayoutItemMargins (int left, int top, int right, int bottom)
 
void setLayoutItemMargins (QStyle::SubElement element, const QStyleOption *opt=nullptr)
 
void updateContentsRect ()
 
QMargins safeAreaMargins () const
 
virtual void aboutToDestroy ()
 
QWidgeteffectiveFocusWidget ()
 
void setModal_sys ()
 
void setRedirected (QPaintDevice *replacement, const QPoint &offset)
 
QPaintDeviceredirected (QPoint *offset) const
 
void restoreRedirected ()
 
void enforceNativeChildren ()
 
bool nativeChildrenForced () const
 
QRect effectiveRectFor (const QRegion &region) const
 
QRect effectiveRectFor (const QRect &rect) const
 
QSize adjustedSize () const
 
void handleSoftwareInputPanel (Qt::MouseButton button, bool clickCausedFocus)
 
void handleSoftwareInputPanel (bool clickCausedFocus=false)
 
void setWSGeometry ()
 
QPoint mapToWS (const QPoint &p) const
 
QPoint mapFromWS (const QPoint &p) const
 
QRect mapToWS (const QRect &r) const
 
QRect mapFromWS (const QRect &r) const
 
virtual QObjectfocusObject ()
 
virtual QPlatformBackingStoreRhiConfig rhiConfig () const
 
virtual TextureData texture () const
 
virtual QPlatformTextureList::Flags textureListFlags ()
 
virtual QImage grabFramebuffer ()
 
virtual void beginBackingStorePainting ()
 
virtual void endBackingStorePainting ()
 
virtual void beginCompose ()
 
virtual void endCompose ()
 
void setRenderToTexture ()
 
void setTextureChildSeen ()
 
virtual void initializeViewportFramebuffer ()
 
virtual void resizeViewportFramebuffer ()
 
virtual void resolveSamples ()
 
virtual bool isStereoEnabled ()
 
virtual bool toggleStereoTargetBuffer ()
 
std::string flagsForDumping () const override
 
QWidgetclosestParentWidgetWithWindowHandle () const
 
QWidgetnextPrevElementInFocusChain (FocusDirection direction) const
 
bool removeFromFocusChain (FocusChainRemovalRules rules=FocusChainRemovalRules(), FocusDirection direction=FocusDirection::Next)
 
bool insertIntoFocusChain (FocusDirection direction, QWidget *position)
 
bool insertIntoFocusChainBefore (QWidget *position)
 
bool insertIntoFocusChainAfter (QWidget *position)
 
void reparentFocusChildren (FocusDirection direction)
 
QWidgetdetermineLastFocusChild (QWidget *noFurtherThan)
 
void initFocusChain ()
 
bool isInFocusChain () const
 
bool isFocusChainConsistent () const
 
void setNetWmWindowTypes (bool skipIfMissing=false)
 
bool stealKeyboardGrab (bool grab)
 
bool stealMouseGrab (bool grab)
 
bool hasChildWithFocusPolicy (Qt::FocusPolicy policy, const QWidget *excludeChildrenOf=nullptr) const
 
- Public Member Functions inherited from QObjectPrivate
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)
 
QObjectList receiverList (const char *signal) 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 void writeToDebugStream (QDebug &) const
 
QtPrivate::QPropertyAdaptorSlotObjectgetPropertyAdaptorSlotObject (const QMetaProperty &property)
 
- Public Member Functions inherited from QObjectData
 QObjectData ()=default
 
virtual ~QObjectData ()=0
 
QMetaObjectdynamicMetaObject () const
 

Static Public Member Functions

static void initStyleBaseOption (QStyleOptionTabBarBase *optTabBase, QTabBar *tabbar, QSize size)
 
- Static Public Member Functions inherited from QWidgetPrivate
static QWidgetPrivateget (QWidget *w)
 
static const QWidgetPrivateget (const QWidget *w)
 
static void checkRestoredGeometry (const QRect &availableGeometry, QRect *restoredGeometry, int frameHeight)
 
static void adjustFlags (Qt::WindowFlags &flags, QWidget *w=nullptr)
 
static QWidgetparentGraphicsView (const QWidget *widget)
 
static QRect screenGeometry (const QWidget *widget)
 
static QRect availableScreenGeometry (const QWidget *widget)
 
static QScreenscreen (const QWidget *widget, const QPoint &globalPosition, bool hasPosition=true)
 
static QRect screenGeometry (const QWidget *widget, const QPoint &globalPosition, bool hasPosition=true)
 
static QRect availableScreenGeometry (const QWidget *widget, const QPoint &globalPosition, bool hasPosition=true)
 
static void sendComposeStatus (QWidget *w, bool end)
 
static void setWidgetParentHelper (QObject *widgetAsObject, QObject *newParent)
 
static bool insertIntoFocusChain (const QWidgetList &toBeInserted, FocusDirection direction, QWidget *position)
 
static QWidgetList takeFromFocusChain (QWidget *from, QWidget *to, FocusDirection direction=FocusDirection::Next)
 
- Static Public Member Functions inherited from QObjectPrivate
static bool removeConnection (Connection *c)
 
static QObjectPrivateget (QObject *o)
 
static const QObjectPrivateget (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)
 

Public Attributes

QRect hoverRect
 
QPoint dragStartPosition
 
QPoint mousePosition = {-1, -1}
 
QSize iconSize
 
QToolButtonrightB = nullptr
 
QToolButtonleftB = nullptr
 
QMovableTabWidgetmovingTab = nullptr
 
int hoverIndex = -1
 
int switchTabCurrentIndex = -1
 
int switchTabTimerId = 0
 
Qt::TextElideMode elideMode = Qt::ElideNone
 
QTabBar::SelectionBehavior selectionBehaviorOnRemove = QTabBar::SelectRightTab
 
QTabBar::Shape shape = QTabBar::RoundedNorth
 
Qt::MouseButtons mouseButtons = Qt::NoButton
 
int currentIndex = -1
 
int pressedIndex = -1
 
int firstVisible = 0
 
int lastVisible = -1
 
int scrollOffset = 0
 
bool layoutDirty: 1
 
bool drawBase: 1
 
bool elideModeSetByUser: 1
 
bool useScrollButtons: 1
 
bool useScrollButtonsSetByUser: 1
 
bool expanding: 1
 
bool closeButtonOnTabs: 1
 
bool paintWithOffsets: 1
 
bool movable: 1
 
bool dragInProgress: 1
 
bool documentMode: 1
 
bool autoHide: 1
 
bool changeCurrentOnDrag: 1
 
QList< Tab * > tabList
 
QHash< QString, QSizetextSizes
 
- Public Attributes inherited from QWidgetPrivate
std::unique_ptr< QWExtraextra
 
QWidgetfocus_next
 
QWidgetfocus_prev
 
QWidgetfocus_child
 
QLayoutlayout
 
QRegionneedsFlush
 
QPaintDeviceredirectDev
 
QWidgetItemV2widgetItem
 
QPaintEngineextraPaintEngine
 
const QMetaObjectpolished
 
QGraphicsEffectgraphicsEffect
 
Qt::InputMethodHints imHints
 
QRegion opaqueChildren
 
QRegion dirty
 
uint directFontResolveMask
 
uint inheritedFontResolveMask
 
decltype(std::declval< QPalette >().resolveMask()) directPaletteResolveMask
 
QPalette::ResolveMask inheritedPaletteResolveMask
 
short leftmargin
 
short topmargin
 
short rightmargin
 
short bottommargin
 
signed char leftLayoutItemMargin
 
signed char topLayoutItemMargin
 
signed char rightLayoutItemMargin
 
signed char bottomLayoutItemMargin
 
Qt::HANDLE hd
 
QWidgetData data
 
QSizePolicy size_policy
 
QLocale locale
 
QPoint redirectOffset
 
QList< QAction * > actions
 
QMap< Qt::GestureType, Qt::GestureFlags > gestureContext
 
uint high_attributes [4]
 
QPalette::ColorRole fg_role: 8
 
QPalette::ColorRole bg_role: 8
 
uint dirtyOpaqueChildren: 1
 
uint isOpaque: 1
 
uint retainSizeWhenHiddenChanged: 1
 
uint inDirtyList: 1
 
uint isScrolled: 1
 
uint isMoved: 1
 
uint usesDoubleBufferedGLContext: 1
 
uint mustHaveWindowHandle: 1
 
uint renderToTexture: 1
 
uint textureChildSeen: 1
 
uint inheritsInputMethodHints: 1
 
uint renderToTextureReallyDirty: 1
 
uint usesRhiFlush: 1
 
uint childrenHiddenByWState: 1
 
uint childrenShownByExpose: 1
 
- Public Attributes inherited from QObjectPrivate
ExtraDataextraData
 
QAtomicPointer< QThreadDatathreadData
 
QAtomicPointer< ConnectionDataconnections
 
union { 
 
   QObject *   currentChildBeingDeleted 
 
   QAbstractDeclarativeData *   declarativeData 
 
};  
 
QAtomicPointer< QtSharedPointer::ExternalRefCountDatasharedRefcount
 
- Public Attributes inherited from QObjectData
QObjectq_ptr
 
QObjectparent
 
QObjectList children
 
uint isWidget: 1
 
uint blockSig: 1
 
uint wasDeleted: 1
 
uint isDeletingChildren: 1
 
uint sendChildEvents: 1
 
uint receiveChildEvents: 1
 
uint isWindow: 1
 
uint deleteLaterCalled: 1
 
uint isQuickItem: 1
 
uint willBeWidget: 1
 
uint wasWidget: 1
 
uint receiveParentEvents: 1
 
uint unused: 20
 
QAtomicInt postedEvents
 
QDynamicMetaObjectDatametaObject
 
QBindingStorage bindingStorage
 

Additional Inherited Members

- Public Types inherited from QWidgetPrivate
enum  DrawWidgetFlag {
  DrawAsRoot = 0x01 , DrawPaintOnScreen = 0x02 , DrawRecursive = 0x04 , DrawInvisible = 0x08 ,
  DontSubtractOpaqueChildren = 0x10 , DontDrawOpaqueChildren = 0x20 , DontDrawNativeChildren = 0x40 , DontSetCompositionMode = 0x80 ,
  UseEffectRegionBounds = 0x100
}
 
enum  Direction { DirectionNorth = 0x01 , DirectionEast = 0x10 , DirectionSouth = 0x02 , DirectionWest = 0x20 }
 
enum class  WindowHandleMode { Direct , Closest , TopLevel }
 
enum  CloseMode { CloseNoEvent , CloseWithEvent , CloseWithSpontaneousEvent }
 
enum class  FocusDirection { Previous , Next }
 
enum class  FocusChainRemovalRule { EnsureFocusOut = 0x01 , AssertConsistency = 0x02 }
 
- Public Types inherited from QObjectPrivate
typedef void(* StaticMetaCallFunction) (QObject *, QMetaObject::Call, int, void **)
 
using ConnectionDataPointer = QExplicitlySharedDataPointer<ConnectionData>
 
- Static Public Attributes inherited from QWidgetPrivate
static QWidgetMappermapper = nullptr
 
static QWidgetSetallWidgets = nullptr
 
static int instanceCounter = 0
 
static int maxInstances = 0
 

Detailed Description

Definition at line 51 of file qtabbar_p.h.

Constructor & Destructor Documentation

◆ QTabBarPrivate()

QTabBarPrivate::QTabBarPrivate ( )
inline

Definition at line 55 of file qtabbar_p.h.

◆ ~QTabBarPrivate()

QTabBarPrivate::~QTabBarPrivate ( )
inline

Definition at line 61 of file qtabbar_p.h.

References qDeleteAll().

+ Here is the call graph for this function:

Member Function Documentation

◆ at() [1/2]

Tab * QTabBarPrivate::at ( int index)
inline

Definition at line 181 of file qtabbar_p.h.

◆ at() [2/2]

const Tab * QTabBarPrivate::at ( int index) const
inline

Definition at line 182 of file qtabbar_p.h.

◆ autoHideTabs()

void QTabBarPrivate::autoHideTabs ( )

Definition at line 762 of file qtabbar.cpp.

References autoHide.

◆ calculateFirstLastVisible()

void QTabBarPrivate::calculateFirstLastVisible ( int index,
bool visible,
bool remove )

Definition at line 1933 of file qtabbar.cpp.

References firstVisible, i, lastVisible, qMax(), qMin(), remove(), and tabList.

+ Here is the call graph for this function:

◆ calculateNewPosition()

int QTabBarPrivate::calculateNewPosition ( int from,
int to,
int index ) const

Definition at line 1989 of file qtabbar.cpp.

References qMax(), and qMin().

+ Here is the call graph for this function:

◆ closeTab()

void QTabBarPrivate::closeTab ( )

Definition at line 770 of file qtabbar.cpp.

References emit, i, QTabBar::LeftSide, QObject::sender(), QStyle::SH_TabBar_CloseButtonPosition, and tabList.

Referenced by QTabBar::insertTab(), and QTabBar::setTabsClosable().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ hoveredTabIndex()

int QTabBarPrivate::hoveredTabIndex ( ) const

Definition at line 658 of file qtabbar.cpp.

References currentIndex, dragInProgress, and hoverIndex.

Referenced by QMacStyle::drawPrimitive().

+ Here is the caller graph for this function:

◆ indexAtPos()

int QTabBarPrivate::indexAtPos ( const QPoint & p) const

Definition at line 396 of file qtabbar.cpp.

References currentIndex, i, and tabList.

◆ init()

void QTabBarPrivate::init ( )

◆ initBasicStyleOption()

void QTabBarPrivate::initBasicStyleOption ( QStyleOptionTab * option,
int tabIndex ) const

◆ initStyleBaseOption()

static void QTabBarPrivate::initStyleBaseOption ( QStyleOptionTabBarBase * optTabBase,
QTabBar * tabbar,
QSize size )
inlinestatic

Definition at line 211 of file qtabbar_p.h.

References QWidget::parentWidget(), QStyle::PM_TabBarBaseOverlap, rect, QTabBar::RoundedEast, QTabBar::RoundedNorth, QTabBar::RoundedSouth, QTabBar::RoundedWest, QRect::setRect(), QTabBar::TriangularEast, QTabBar::TriangularNorth, QTabBar::TriangularSouth, and QTabBar::TriangularWest.

Referenced by QTabBar::paintEvent(), and QTabWidget::paintEvent().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ isAnimated()

bool QTabBarPrivate::isAnimated ( ) const
inline

Definition at line 186 of file qtabbar_p.h.

References QStyle::SH_Widget_Animation_Duration.

◆ isTabInMacUnifiedToolbarArea()

bool QTabBarPrivate::isTabInMacUnifiedToolbarArea ( ) const

◆ killSwitchTabTimer()

void QTabBarPrivate::killSwitchTabTimer ( )

Definition at line 708 of file qtabbar.cpp.

References switchTabCurrentIndex, and switchTabTimerId.

◆ layoutTab()

void QTabBarPrivate::layoutTab ( int index)

Definition at line 718 of file qtabbar.cpp.

References QTabBarPrivate::Tab::dragOffset, QTabBarPrivate::Tab::leftWidget, QWidget::move(), opt, paintWithOffsets, pressedIndex, Q_ASSERT, rect, QTabBarPrivate::Tab::rightWidget, QStyle::SE_TabBarTabLeftButton, QStyle::SE_TabBarTabRightButton, QPoint::setY(), shape, tabList, and verticalTabs().

Referenced by layoutWidgets(), and moveTab().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ layoutTabs()

void QTabBarPrivate::layoutTabs ( )

Definition at line 407 of file qtabbar.cpp.

References Qt::AlignJustify, Qt::AlignLeft, Qt::AlignRight, Qt::DownArrow, expanding, QSize::height(), QWidget::hide(), i, QStyleOption::initFrom(), layoutDirty, layoutWidgets(), Qt::LeftArrow, leftB, normalizedScrollRect(), opt, QStyle::PM_TabBarScrollButtonWidth, Q_ASSERT, qGeomCalc(), qMax(), Qt::RightArrow, rightB, Qt::RightToLeft, QWidgetPrivate::scrollRect(), QStyle::SE_TabBarScrollLeftButton, QStyle::SE_TabBarScrollRightButton, QToolButton::setArrowType(), QWidget::setEnabled(), QWidget::setGeometry(), QRect::setHeight(), QStyle::SH_TabBar_Alignment, shape, QWidget::show(), tabList, Qt::UpArrow, useScrollButtons, verticalTabs(), and QSize::width().

Referenced by refresh().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ layoutWidgets()

void QTabBarPrivate::layoutWidgets ( int start = 0)

Definition at line 754 of file qtabbar.cpp.

References i, and layoutTab().

Referenced by layoutTabs(), makeVisible(), and moveTabFinished().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ makeVisible()

void QTabBarPrivate::makeVisible ( int index)

Definition at line 667 of file qtabbar.cpp.

References QRect::bottom(), layoutWidgets(), QRect::left(), leftB, normalizedScrollRect(), qMax(), qMin(), QRect::right(), rightB, scrollOffset, QWidgetPrivate::scrollRect(), QWidget::setEnabled(), shape, tabList, QRect::top(), validIndex(), and verticalTabs().

Referenced by refresh(), and scrollTabs().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ moveTab()

void QTabBarPrivate::moveTab ( int index,
int offset )

Definition at line 2111 of file qtabbar.cpp.

References layoutTab(), tabList, and validIndex().

+ Here is the call graph for this function:

◆ moveTabFinished()

void QTabBarPrivate::moveTabFinished ( int index)

Definition at line 2277 of file qtabbar.cpp.

References dragInProgress, dragStartPosition, layoutWidgets(), movable, movingTab, pressedIndex, QAbstractAnimation::Running, QWidget::setVisible(), tabList, and validIndex().

Referenced by refresh().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ normalizedScrollRect()

QRect QTabBarPrivate::normalizedScrollRect ( int index = -1)

Definition at line 578 of file qtabbar.cpp.

References currentIndex, QWidget::isHidden(), leftB, opt, QStyleOption::rect, Qt::RightToLeft, scrollOffset, QStyle::SE_TabBarScrollLeftButton, QStyle::SE_TabBarScrollRightButton, QStyle::SE_TabBarTearIndicatorLeft, QStyle::SE_TabBarTearIndicatorRight, shape, tabList, verticalTabs(), QStyle::visualRect(), and QRect::y().

Referenced by layoutTabs(), makeVisible(), and scrollTabs().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ refresh()

void QTabBarPrivate::refresh ( )

Definition at line 823 of file qtabbar.cpp.

References currentIndex, layoutDirty, layoutTabs(), makeVisible(), mouseButtons, movable, moveTabFinished(), Qt::NoButton, pressedIndex, and validIndex().

+ Here is the call graph for this function:

◆ scrollTabs()

void QTabBarPrivate::scrollTabs ( )

Definition at line 793 of file qtabbar.cpp.

References i, leftB, makeVisible(), normalizedScrollRect(), rightB, scrollOffset, QWidgetPrivate::scrollRect(), QObject::sender(), shape, tabList, QRect::translated(), and verticalTabs().

Referenced by init().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ selectNewCurrentIndexFrom()

int QTabBarPrivate::selectNewCurrentIndexFrom ( int currentIndex)

Definition at line 1965 of file qtabbar.cpp.

References at, i, and tabList.

◆ setCurrentNextEnabledIndex()

void QTabBarPrivate::setCurrentNextEnabledIndex ( int offset)

\reimp

Definition at line 2438 of file qtabbar.cpp.

References currentIndex, tabList, and validIndex().

+ Here is the call graph for this function:

◆ setupMovableTab()

void QTabBarPrivate::setupMovableTab ( )

Definition at line 2232 of file qtabbar.cpp.

References QRect::adjust(), QStyle::CE_TabBarTab, QPixmap::fill(), leftB, movingTab, QStyle::PM_TabBarTabOverlap, pressedIndex, QWidget::raise(), rightB, QPixmap::setDevicePixelRatio(), QWidget::setGeometry(), QMovableTabWidget::setPixmap(), QWidget::setVisible(), shape, tabList, Qt::transparent, and verticalTabs().

+ Here is the call graph for this function:

◆ slide()

void QTabBarPrivate::slide ( int from,
int to )

Definition at line 2093 of file qtabbar.cpp.

References ANIMATION_DURATION, shape, tabList, validIndex(), and verticalTabs().

+ Here is the call graph for this function:

◆ updateMacBorderMetrics()

void QTabBarPrivate::updateMacBorderMetrics ( )

Definition at line 74 of file qtabbar.cpp.

References documentMode, function, QPlatformNativeInterface::nativeResourceFunctionForIntegration(), QGuiApplication::platformNativeInterface(), void, window(), and QPoint::y().

+ Here is the call graph for this function:

◆ validIndex()

bool QTabBarPrivate::validIndex ( int index) const
inline

Definition at line 187 of file qtabbar_p.h.

Referenced by makeVisible(), moveTab(), moveTabFinished(), refresh(), setCurrentNextEnabledIndex(), and slide().

+ Here is the caller graph for this function:

Member Data Documentation

◆ autoHide

bool QTabBarPrivate::autoHide

Definition at line 101 of file qtabbar_p.h.

Referenced by autoHideTabs().

◆ changeCurrentOnDrag

bool QTabBarPrivate::changeCurrentOnDrag

Definition at line 102 of file qtabbar_p.h.

◆ closeButtonOnTabs

bool QTabBarPrivate::closeButtonOnTabs

Definition at line 96 of file qtabbar_p.h.

◆ currentIndex

int QTabBarPrivate::currentIndex = -1

◆ documentMode

bool QTabBarPrivate::documentMode

Definition at line 100 of file qtabbar_p.h.

Referenced by initBasicStyleOption(), and updateMacBorderMetrics().

◆ dragInProgress

bool QTabBarPrivate::dragInProgress

Definition at line 99 of file qtabbar_p.h.

Referenced by hoveredTabIndex(), initBasicStyleOption(), and moveTabFinished().

◆ dragStartPosition

QPoint QTabBarPrivate::dragStartPosition

Definition at line 67 of file qtabbar_p.h.

Referenced by moveTabFinished().

◆ drawBase

bool QTabBarPrivate::drawBase

Definition at line 91 of file qtabbar_p.h.

◆ elideMode

Qt::TextElideMode QTabBarPrivate::elideMode = Qt::ElideNone

Definition at line 79 of file qtabbar_p.h.

Referenced by init().

◆ elideModeSetByUser

bool QTabBarPrivate::elideModeSetByUser

Definition at line 92 of file qtabbar_p.h.

◆ expanding

bool QTabBarPrivate::expanding

Definition at line 95 of file qtabbar_p.h.

Referenced by layoutTabs().

◆ firstVisible

int QTabBarPrivate::firstVisible = 0

Definition at line 86 of file qtabbar_p.h.

Referenced by calculateFirstLastVisible(), and initBasicStyleOption().

◆ hoverIndex

int QTabBarPrivate::hoverIndex = -1

Definition at line 76 of file qtabbar_p.h.

Referenced by hoveredTabIndex().

◆ hoverRect

QRect QTabBarPrivate::hoverRect

Definition at line 66 of file qtabbar_p.h.

Referenced by initBasicStyleOption().

◆ iconSize

QSize QTabBarPrivate::iconSize

Definition at line 72 of file qtabbar_p.h.

◆ lastVisible

int QTabBarPrivate::lastVisible = -1

Definition at line 87 of file qtabbar_p.h.

Referenced by calculateFirstLastVisible(), and initBasicStyleOption().

◆ layoutDirty

bool QTabBarPrivate::layoutDirty

Definition at line 90 of file qtabbar_p.h.

Referenced by layoutTabs(), and refresh().

◆ leftB

QToolButton* QTabBarPrivate::leftB = nullptr

◆ mouseButtons

Qt::MouseButtons QTabBarPrivate::mouseButtons = Qt::NoButton

Definition at line 82 of file qtabbar_p.h.

Referenced by refresh().

◆ mousePosition

QPoint QTabBarPrivate::mousePosition = {-1, -1}

Definition at line 68 of file qtabbar_p.h.

◆ movable

bool QTabBarPrivate::movable

Definition at line 98 of file qtabbar_p.h.

Referenced by moveTabFinished(), and refresh().

◆ movingTab

QMovableTabWidget* QTabBarPrivate::movingTab = nullptr

Definition at line 75 of file qtabbar_p.h.

Referenced by moveTabFinished(), and setupMovableTab().

◆ paintWithOffsets

bool QTabBarPrivate::paintWithOffsets

Definition at line 97 of file qtabbar_p.h.

Referenced by layoutTab().

◆ pressedIndex

int QTabBarPrivate::pressedIndex = -1

◆ rightB

QToolButton* QTabBarPrivate::rightB = nullptr

Definition at line 73 of file qtabbar_p.h.

Referenced by init(), layoutTabs(), makeVisible(), scrollTabs(), and setupMovableTab().

◆ scrollOffset

int QTabBarPrivate::scrollOffset = 0

Definition at line 88 of file qtabbar_p.h.

Referenced by makeVisible(), normalizedScrollRect(), and scrollTabs().

◆ selectionBehaviorOnRemove

QTabBar::SelectionBehavior QTabBarPrivate::selectionBehaviorOnRemove = QTabBar::SelectRightTab

Definition at line 80 of file qtabbar_p.h.

◆ shape

◆ switchTabCurrentIndex

int QTabBarPrivate::switchTabCurrentIndex = -1

Definition at line 77 of file qtabbar_p.h.

Referenced by killSwitchTabTimer().

◆ switchTabTimerId

int QTabBarPrivate::switchTabTimerId = 0

Definition at line 78 of file qtabbar_p.h.

Referenced by killSwitchTabTimer().

◆ tabList

◆ textSizes

QHash<QString, QSize> QTabBarPrivate::textSizes
mutable

Definition at line 173 of file qtabbar_p.h.

◆ useScrollButtons

bool QTabBarPrivate::useScrollButtons

Definition at line 93 of file qtabbar_p.h.

Referenced by init(), and layoutTabs().

◆ useScrollButtonsSetByUser

bool QTabBarPrivate::useScrollButtonsSetByUser

Definition at line 94 of file qtabbar_p.h.


The documentation for this class was generated from the following files: