Qt 6.x
The Qt SDK
Loading...
Searching...
No Matches
QToolBarAreaLayoutItem Class Reference

#include <qtoolbararealayout_p.h>

+ Collaboration diagram for QToolBarAreaLayoutItem:

Public Member Functions

 QToolBarAreaLayoutItem (QLayoutItem *item=nullptr)
 
bool skip () const
 
QSize minimumSize () const
 
QSize sizeHint () const
 
QSize realSizeHint () const
 
void resize (Qt::Orientation o, int newSize)
 
void extendSize (Qt::Orientation o, int extent)
 

Public Attributes

QLayoutItemwidgetItem
 
int pos
 
int size
 
int preferredSize
 
bool gap
 

Detailed Description

Definition at line 33 of file qtoolbararealayout_p.h.

Constructor & Destructor Documentation

◆ QToolBarAreaLayoutItem()

QToolBarAreaLayoutItem::QToolBarAreaLayoutItem ( QLayoutItem item = nullptr)
inline

Definition at line 36 of file qtoolbararealayout_p.h.

Member Function Documentation

◆ extendSize()

void QToolBarAreaLayoutItem::extendSize ( Qt::Orientation  o,
int  extent 
)
inline

Definition at line 56 of file qtoolbararealayout_p.h.

References minimumSize(), o, pick(), preferredSize, qMax(), and sizeHint().

Referenced by QToolBarAreaLayoutInfo::moveToolBar().

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

◆ minimumSize()

QSize QToolBarAreaLayoutItem::minimumSize ( ) const

Definition at line 25 of file qtoolbararealayout.cpp.

References qSmartMinSize(), skip(), and widgetItem.

Referenced by extendSize(), QToolBarAreaLayoutInfo::moveToolBar(), and resize().

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

◆ realSizeHint()

QSize QToolBarAreaLayoutItem::realSizeHint ( ) const

Definition at line 41 of file qtoolbararealayout.cpp.

References QSize::expandedTo(), QSizePolicy::horizontalPolicy(), QSizePolicy::Ignored, QWidget::maximumSize, QWidget::minimumSize, QWidget::minimumSizeHint, QSize::setWidth(), QWidget::sizeHint, QWidget::sizePolicy, QSizePolicy::verticalPolicy(), QLayoutItem::widget(), and widgetItem.

Referenced by sizeHint().

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

◆ resize()

void QToolBarAreaLayoutItem::resize ( Qt::Orientation  o,
int  newSize 
)
inline

Definition at line 44 of file qtoolbararealayout_p.h.

References minimumSize(), o, pick(), preferredSize, qMax(), and sizeHint().

Referenced by QToolBarAreaLayoutInfo::insertGap(), and QToolBarAreaLayout::unplug().

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

◆ sizeHint()

QSize QToolBarAreaLayoutItem::sizeHint ( ) const

Definition at line 32 of file qtoolbararealayout.cpp.

References realSizeHint(), and skip().

Referenced by extendSize(), QToolBarAreaLayoutInfo::insertGap(), QToolBarAreaLayoutInfo::moveToolBar(), resize(), and QToolBarAreaLayout::unplug().

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

◆ skip()

bool QToolBarAreaLayoutItem::skip ( ) const

Definition at line 54 of file qtoolbararealayout.cpp.

References gap, QLayoutItem::isEmpty(), and widgetItem.

Referenced by QToolBarAreaLayoutInfo::insertGap(), minimumSize(), QToolBarAreaLayoutInfo::moveToolBar(), sizeHint(), QToolBarAreaLayoutLine::skip(), and QToolBarAreaLayout::unplug().

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

Member Data Documentation

◆ gap

bool QToolBarAreaLayoutItem::gap

Definition at line 72 of file qtoolbararealayout_p.h.

Referenced by QToolBarAreaLayoutInfo::insertGap(), and skip().

◆ pos

int QToolBarAreaLayoutItem::pos

◆ preferredSize

int QToolBarAreaLayoutItem::preferredSize

Definition at line 71 of file qtoolbararealayout_p.h.

Referenced by extendSize(), QToolBarAreaLayoutInfo::insertGap(), and resize().

◆ size

int QToolBarAreaLayoutItem::size

◆ widgetItem


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