![]() |
Qt 6.x
The Qt SDK
|
#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 () |
| QLayoutItem * | insertToolBar (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< QToolBarAreaLayoutLine > | lines |
| QRect | rect |
| Qt::Orientation | o |
| QInternal::DockPosition | dockPos |
| bool | dirty |
Definition at line 95 of file qtoolbararealayout_p.h.
| QToolBarAreaLayoutInfo::QToolBarAreaLayoutInfo | ( | QInternal::DockPosition | pos = QInternal::TopDock | ) |
Definition at line 165 of file qtoolbararealayout.cpp.
References QInternal::BottomDock, Qt::Horizontal, QInternal::LeftDock, o, pos, QInternal::RightDock, QInternal::TopDock, and Qt::Vertical.
| 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:| 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:| 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: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:| 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, QToolBarAreaLayoutItem::resize(), QList< T >::size(), QToolBarAreaLayoutItem::size, QToolBarAreaLayoutItem::sizeHint(), QToolBarAreaLayoutItem::skip(), and QToolBarAreaLayoutItem::widgetItem.
Referenced by QToolBarAreaLayout::insertGap().
Here is the call graph for this function:
Here is the caller graph for this function:| 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:| QLayoutItem * QToolBarAreaLayoutInfo::insertToolBar | ( | QToolBar * | before, |
| QToolBar * | toolBar | ||
| ) |
Definition at line 259 of file qtoolbararealayout.cpp.
References insertItem(), item, o, and QToolBar::setOrientation().
Referenced by QToolBarAreaLayout::addToolBar(), and QToolBarAreaLayout::insertToolBar().
Here is the call graph for this function:
Here is the caller graph for this function: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: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:| 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: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: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: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:| 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:| bool QToolBarAreaLayoutInfo::dirty |
Definition at line 122 of file qtoolbararealayout_p.h.
Referenced by fitLayout(), and moveToolBar().
| QInternal::DockPosition QToolBarAreaLayoutInfo::dockPos |
Definition at line 121 of file qtoolbararealayout_p.h.
Referenced by distance(), and fitLayout().
| QList<QToolBarAreaLayoutLine> QToolBarAreaLayoutInfo::lines |
Definition at line 118 of file qtoolbararealayout_p.h.
Referenced by QToolBarAreaLayout::apply(), clear(), QToolBarAreaLayout::currentGapIndex(), QToolBarAreaLayout::deleteAllLayoutItems(), QToolBarAreaLayout::findToolBar(), fitLayout(), gapIndex(), QToolBarAreaLayout::getStyleOptionInfo(), QToolBarAreaLayout::indexOf(), insertGap(), QToolBarAreaLayout::insertItem(), insertItem(), insertToolBarBreak(), QToolBarAreaLayout::itemAt(), itemRect(), minimumSize(), moveToolBar(), QToolBarAreaLayout::remove(), QToolBarAreaLayout::remove(), removeToolBar(), removeToolBarBreak(), QToolBarAreaLayout::restoreState(), QToolBarAreaLayout::saveState(), sizeHint(), QToolBarAreaLayout::takeAt(), and QToolBarAreaLayout::toolBarBreak().
| Qt::Orientation QToolBarAreaLayoutInfo::o |
Definition at line 120 of file qtoolbararealayout_p.h.
Referenced by QToolBarAreaLayoutInfo(), QToolBarAreaLayout::apply(), fitLayout(), gapIndex(), insertGap(), insertItem(), insertToolBar(), insertToolBarBreak(), itemRect(), minimumSize(), moveToolBar(), QToolBarAreaLayout::restoreState(), and sizeHint().
| QRect QToolBarAreaLayoutInfo::rect |
Definition at line 119 of file qtoolbararealayout_p.h.
Referenced by clear(), distance(), fitLayout(), QToolBarAreaLayout::fitLayout(), gapIndex(), QToolBarAreaLayout::itemRect(), and moveToolBar().