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
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 95 of file qtoolbararealayout_p.h.

Constructor & Destructor Documentation

◆ QToolBarAreaLayoutInfo()

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

Member Function Documentation

◆ clear()

void QToolBarAreaLayoutInfo::clear ( )

Definition at line 535 of file qtoolbararealayout.cpp.

References QList< T >::clear(), lines, and rect.

+ Here is the call graph for this function:

◆ distance()

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

Definition at line 563 of file qtoolbararealayout.cpp.

References QRect::bottom(), QInternal::BottomDock, QInternal::DockCount, dockPos, QRect::left(), QInternal::LeftDock, pos, rect, QRect::right(), QInternal::RightDock, QRect::top(), and QInternal::TopDock.

+ Here is the call graph for this function:

◆ fitLayout()

void QToolBarAreaLayoutInfo::fitLayout ( )

Definition at line 223 of file qtoolbararealayout.cpp.

References QRect::bottom(), QInternal::BottomDock, dirty, dockPos, QToolBarAreaLayoutLine::fitLayout(), QSize::height(), Qt::Horizontal, i, QRect::left(), lines, o, QToolBarAreaLayoutLine::rect, rect, QRect::right(), QInternal::RightDock, QRect::setBottom(), QRect::setLeft(), QRect::setRight(), QRect::setTop(), QList< T >::size(), QToolBarAreaLayoutLine::sizeHint(), QToolBarAreaLayoutLine::skip(), QRect::top(), and QSize::width().

Referenced by QToolBarAreaLayout::fitLayout(), and 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 446 of file qtoolbararealayout.cpp.

References QString::at(), QList< T >::at(), QRect::contains(), QString::contains(), dist(), item, j, line, lines, o, pick(), pos, QGraphicsItem::pos(), qMin(), rect, QString::size(), QList< T >::size(), and QRect::topLeft().

Referenced by QToolBarAreaLayout::gapIndex().

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

◆ insertGap()

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

Definition at line 496 of file qtoolbararealayout.cpp.

References QList< T >::append(), QList< T >::at(), QToolBarAreaLayoutItem::gap, QString::insert(), item, j, line, lines, o, pick(), QToolBarAreaLayoutItem::preferredSize, Q_ASSERT, QList< T >::size(), QToolBarAreaLayoutItem::size, QToolBarAreaLayoutItem::sizeHint(), and QToolBarAreaLayoutItem::skip().

Referenced by QToolBarAreaLayout::insertGap().

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

◆ insertItem()

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

Definition at line 267 of file qtoolbararealayout.cpp.

References QList< T >::append(), QString::at(), QString::insert(), QList< T >::isEmpty(), item, j, QList< T >::last(), line, lines, o, QString::size(), QList< T >::size(), and QToolBarAreaLayoutLine::toolBarItems.

Referenced by QToolBarAreaLayout::insertItem(), and insertToolBar().

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

◆ insertToolBar()

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

Definition at line 259 of file qtoolbararealayout.cpp.

References insertItem(), item, and o.

Referenced by QToolBarAreaLayout::addToolBar(), and QToolBarAreaLayout::insertToolBar().

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

◆ insertToolBarBreak()

void QToolBarAreaLayoutInfo::insertToolBarBreak ( QToolBar * before)

Definition at line 309 of file qtoolbararealayout.cpp.

References QList< T >::append(), QString::at(), QList< T >::constLast(), QList< T >::insert(), QList< T >::isEmpty(), j, line, lines, QString::mid(), o, QString::size(), QList< T >::size(), and QToolBarAreaLayoutLine::toolBarItems.

Referenced by QToolBarAreaLayout::addToolBarBreak(), and QToolBarAreaLayout::insertToolBarBreak().

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

◆ itemRect()

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

Definition at line 541 of file qtoolbararealayout.cpp.

References QString::at(), QList< T >::at(), Qt::Horizontal, item, j, QString::left(), line, lines, o, QGraphicsItem::pos(), and Q_ASSERT.

Referenced by QToolBarAreaLayout::itemRect().

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

◆ minimumSize()

QSize QToolBarAreaLayoutInfo::minimumSize ( ) const

Definition at line 203 of file qtoolbararealayout.cpp.

References QList< T >::at(), i, lines, QToolBarAreaLayoutLine::minimumSize(), o, perp(), pick(), qMax(), rperp(), rpick(), QList< T >::size(), and QToolBarAreaLayoutLine::skip().

Referenced by QToolBarAreaLayout::minimumSize().

+ Here is the call graph for this function:
+ Here is the caller 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 358 of file qtoolbararealayout.cpp.

References QString::at(), dirty, QToolBarAreaLayoutItem::extendSize(), fitLayout(), item, j, line, lines, QToolBarAreaLayoutItem::minimumSize(), o, pick(), pos, QToolBarAreaLayoutItem::pos, Q_ASSERT, qAbs(), qMax(), qMin(), rect, QString::size(), QList< T >::size(), QRect::size(), QToolBarAreaLayoutItem::size, QToolBarAreaLayoutItem::sizeHint(), QToolBarAreaLayoutItem::skip(), QApplication::startDragDistance, QRect::top(), Qt::Vertical, QLayoutItem::widget(), and QToolBarAreaLayoutItem::widgetItem.

Referenced by QToolBarAreaLayout::moveToolBar().

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

◆ removeToolBar()

void QToolBarAreaLayoutInfo::removeToolBar ( QToolBar * toolBar)

Definition at line 288 of file qtoolbararealayout.cpp.

References QString::isEmpty(), item, j, line, lines, QList< T >::removeAt(), QString::removeAt(), QString::size(), and QList< T >::size().

Referenced by QToolBarAreaLayout::removeToolBar().

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

◆ removeToolBarBreak()

void QToolBarAreaLayoutInfo::removeToolBarBreak ( QToolBar * before)

Definition at line 337 of file qtoolbararealayout.cpp.

References QString::at(), QList< T >::at(), j, line, lines, QList< T >::removeAt(), QString::size(), and QList< T >::size().

Referenced by QToolBarAreaLayout::removeToolBarBreak().

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

◆ sizeHint()

QSize QToolBarAreaLayoutInfo::sizeHint ( ) const

Definition at line 183 of file qtoolbararealayout.cpp.

References QList< T >::at(), hint(), i, lines, o, perp(), pick(), qMax(), rperp(), rpick(), QList< T >::size(), QToolBarAreaLayoutLine::sizeHint(), and QToolBarAreaLayoutLine::skip().

Referenced by QToolBarAreaLayout::fitLayout(), QToolBarAreaLayout::rectHint(), and QToolBarAreaLayout::sizeHint().

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

Member Data Documentation

◆ dirty

bool QToolBarAreaLayoutInfo::dirty

Definition at line 122 of file qtoolbararealayout_p.h.

Referenced by fitLayout(), and moveToolBar().

◆ dockPos

QInternal::DockPosition QToolBarAreaLayoutInfo::dockPos

Definition at line 121 of file qtoolbararealayout_p.h.

Referenced by distance(), and fitLayout().

◆ lines

◆ o

◆ rect


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