Qt
Internal/Contributor docs for the Qt SDK. Note: These are NOT official API docs; those are found at https://doc.qt.io/
Loading...
Searching...
No Matches
QToolBarAreaLayoutInfo Class Reference

#include <qtoolbararealayout_p.h>

Collaboration diagram for QToolBarAreaLayoutInfo:

Public Member Functions

 QToolBarAreaLayoutInfo (QInternal::DockPosition pos=QInternal::TopDock)
QSize sizeHint () const
QSize minimumSize () const
void fitLayout ()
QLayoutIteminsertToolBar (QToolBar *before, QToolBar *toolBar)
void insertItem (QToolBar *before, QLayoutItem *item)
void removeToolBar (QToolBar *toolBar)
void insertToolBarBreak (QToolBar *before)
void removeToolBarBreak (QToolBar *before)
void moveToolBar (QToolBar *toolbar, int pos)
QList< int > gapIndex (const QPoint &pos, int *maxDistance) const
bool insertGap (const QList< int > &path, QLayoutItem *item)
void clear ()
QRect itemRect (const QList< int > &path) const
int distance (const QPoint &pos) const

Public Attributes

QList< QToolBarAreaLayoutLinelines
QRect rect
Qt::Orientation o
QInternal::DockPosition dockPos
bool dirty

Detailed Description

Definition at line 96 of file qtoolbararealayout_p.h.

Constructor & Destructor Documentation

◆ QToolBarAreaLayoutInfo()

QToolBarAreaLayoutInfo::QToolBarAreaLayoutInfo ( QInternal::DockPosition pos = QInternal::TopDock)

Definition at line 166 of file qtoolbararealayout.cpp.

References QToolBarAreaLayoutInfo(), and dirty.

Referenced by QToolBarAreaLayoutInfo().

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

Member Function Documentation

◆ clear()

void QToolBarAreaLayoutInfo::clear ( )

Definition at line 536 of file qtoolbararealayout.cpp.

◆ distance()

int QToolBarAreaLayoutInfo::distance ( const QPoint & pos) const

Definition at line 564 of file qtoolbararealayout.cpp.

◆ fitLayout()

void QToolBarAreaLayoutInfo::fitLayout ( )

Definition at line 224 of file qtoolbararealayout.cpp.

References dirty, QToolBarAreaLayoutLine::fitLayout(), and QToolBarAreaLayoutLine::skip().

Referenced by moveToolBar().

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

◆ gapIndex()

QList< int > QToolBarAreaLayoutInfo::gapIndex ( const QPoint & pos,
int * maxDistance ) const

Definition at line 447 of file qtoolbararealayout.cpp.

References QToolBarAreaLayoutItem::pos, QToolBarAreaLayoutItem::skip(), and QToolBarAreaLayoutLine::skip().

Here is the call graph for this function:

◆ insertGap()

bool QToolBarAreaLayoutInfo::insertGap ( const QList< int > & path,
QLayoutItem * item )

Definition at line 497 of file qtoolbararealayout.cpp.

References QToolBarAreaLayoutItem::gap, QToolBarAreaLayoutItem::preferredSize, QToolBarAreaLayoutItem::size, QToolBarAreaLayoutItem::skip(), and QToolBarAreaLayoutItem::widgetItem.

Here is the call graph for this function:

◆ insertItem()

void QToolBarAreaLayoutInfo::insertItem ( QToolBar * before,
QLayoutItem * item )

Definition at line 268 of file qtoolbararealayout.cpp.

Referenced by insertToolBar().

Here is the caller graph for this function:

◆ insertToolBar()

QLayoutItem * QToolBarAreaLayoutInfo::insertToolBar ( QToolBar * before,
QToolBar * toolBar )

Definition at line 260 of file qtoolbararealayout.cpp.

References insertItem().

Here is the call graph for this function:

◆ insertToolBarBreak()

void QToolBarAreaLayoutInfo::insertToolBarBreak ( QToolBar * before)

Definition at line 310 of file qtoolbararealayout.cpp.

◆ itemRect()

QRect QToolBarAreaLayoutInfo::itemRect ( const QList< int > & path) const

◆ minimumSize()

QSize QToolBarAreaLayoutInfo::minimumSize ( ) const

Definition at line 204 of file qtoolbararealayout.cpp.

References QToolBarAreaLayoutLine::skip().

Here is the call graph for this function:

◆ moveToolBar()

void QToolBarAreaLayoutInfo::moveToolBar ( QToolBar * toolbar,
int pos )

at this point we need to get extra pixels from the toolbars at the left

Definition at line 359 of file qtoolbararealayout.cpp.

References dirty, fitLayout(), QToolBarAreaLayoutItem::pos, QToolBarAreaLayoutItem::size, QToolBarAreaLayoutItem::skip(), and QToolBarAreaLayoutItem::widgetItem.

Here is the call graph for this function:

◆ removeToolBar()

void QToolBarAreaLayoutInfo::removeToolBar ( QToolBar * toolBar)

Definition at line 289 of file qtoolbararealayout.cpp.

References QToolBarAreaLayoutItem::widgetItem.

◆ removeToolBarBreak()

void QToolBarAreaLayoutInfo::removeToolBarBreak ( QToolBar * before)

Definition at line 338 of file qtoolbararealayout.cpp.

◆ sizeHint()

QSize QToolBarAreaLayoutInfo::sizeHint ( ) const

Definition at line 184 of file qtoolbararealayout.cpp.

References QToolBarAreaLayoutLine::skip().

Here is the call graph for this function:

Member Data Documentation

◆ dirty

bool QToolBarAreaLayoutInfo::dirty

Definition at line 123 of file qtoolbararealayout_p.h.

Referenced by QToolBarAreaLayoutInfo(), fitLayout(), and moveToolBar().

◆ dockPos

QInternal::DockPosition QToolBarAreaLayoutInfo::dockPos

Definition at line 122 of file qtoolbararealayout_p.h.

◆ lines

QList<QToolBarAreaLayoutLine> QToolBarAreaLayoutInfo::lines

Definition at line 119 of file qtoolbararealayout_p.h.

◆ o

Qt::Orientation QToolBarAreaLayoutInfo::o

Definition at line 121 of file qtoolbararealayout_p.h.

◆ rect

QRect QToolBarAreaLayoutInfo::rect

Definition at line 120 of file qtoolbararealayout_p.h.


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