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
QDockAreaLayoutItem Struct Reference

#include <qdockarealayout_p.h>

+ Collaboration diagram for QDockAreaLayoutItem:

Public Types

enum  ItemFlags { NoFlags = 0 , GapItem = 1 , KeepSize = 2 }
 

Public Member Functions

 QDockAreaLayoutItem (QLayoutItem *_widgetItem=nullptr)
 
 QDockAreaLayoutItem (QDockAreaLayoutInfo *_subinfo)
 
 QDockAreaLayoutItem (QPlaceHolderItem *_placeHolderItem)
 
 QDockAreaLayoutItem (const QDockAreaLayoutItem &other)
 
 ~QDockAreaLayoutItem ()
 
QDockAreaLayoutItemoperator= (const QDockAreaLayoutItem &other)
 
bool skip () const
 
QSize minimumSize () const
 
QSize maximumSize () const
 
QSize sizeHint () const
 
bool expansive (Qt::Orientation o) const
 
bool hasFixedSize (Qt::Orientation o) const
 

Public Attributes

QLayoutItemwidgetItem
 
QDockAreaLayoutInfosubinfo
 
QPlaceHolderItemplaceHolderItem
 
int pos
 
int size
 
uint flags
 

Friends

Q_AUTOTEST_EXPORT QDebug operator<< (QDebug dbg, const QDockAreaLayoutItem &item)
 
Q_AUTOTEST_EXPORT QDebug operator<< (QDebug dbg, const QDockAreaLayoutItem *item)
 

Detailed Description

Definition at line 50 of file qdockarealayout_p.h.

Member Enumeration Documentation

◆ ItemFlags

Enumerator
NoFlags 
GapItem 
KeepSize 

Definition at line 52 of file qdockarealayout_p.h.

Constructor & Destructor Documentation

◆ QDockAreaLayoutItem() [1/4]

QDockAreaLayoutItem::QDockAreaLayoutItem ( QLayoutItem * _widgetItem = nullptr)
explicit

Definition at line 51 of file qdockarealayout.cpp.

◆ QDockAreaLayoutItem() [2/4]

QDockAreaLayoutItem::QDockAreaLayoutItem ( QDockAreaLayoutInfo * _subinfo)
explicit

Definition at line 56 of file qdockarealayout.cpp.

◆ QDockAreaLayoutItem() [3/4]

QDockAreaLayoutItem::QDockAreaLayoutItem ( QPlaceHolderItem * _placeHolderItem)
explicit

Definition at line 61 of file qdockarealayout.cpp.

◆ QDockAreaLayoutItem() [4/4]

QDockAreaLayoutItem::QDockAreaLayoutItem ( const QDockAreaLayoutItem & other)

Definition at line 66 of file qdockarealayout.cpp.

References other(), placeHolderItem, and subinfo.

+ Here is the call graph for this function:

◆ ~QDockAreaLayoutItem()

QDockAreaLayoutItem::~QDockAreaLayoutItem ( )

Definition at line 76 of file qdockarealayout.cpp.

References placeHolderItem, and subinfo.

Member Function Documentation

◆ expansive()

bool QDockAreaLayoutItem::expansive ( Qt::Orientation o) const

Definition at line 126 of file qdockarealayout.cpp.

References QLayoutItem::expandingDirections(), QDockAreaLayoutInfo::expansive(), GapItem, o, placeHolderItem, subinfo, and widgetItem.

Referenced by QDockAreaLayoutInfo::expansive().

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

◆ hasFixedSize()

bool QDockAreaLayoutItem::hasFixedSize ( Qt::Orientation o) const

Definition at line 121 of file qdockarealayout.cpp.

References maximumSize(), minimumSize(), o, and perp().

Referenced by QDockAreaLayoutInfo::fitItems(), and QDockAreaLayoutInfo::sizeHint().

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

◆ maximumSize()

QSize QDockAreaLayoutItem::maximumSize ( ) const

Definition at line 112 of file qdockarealayout.cpp.

References QDockAreaLayoutInfo::maximumSize(), QLayoutItem::maximumSize(), QWIDGETSIZE_MAX, subinfo, QLayoutItem::widget(), and widgetItem.

Referenced by hasFixedSize().

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

◆ minimumSize()

QSize QDockAreaLayoutItem::minimumSize ( ) const

Definition at line 103 of file qdockarealayout.cpp.

References QDockAreaLayoutInfo::minimumSize(), QLayoutItem::minimumSize(), subinfo, QLayoutItem::widget(), and widgetItem.

Referenced by hasFixedSize().

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

◆ operator=()

QDockAreaLayoutItem & QDockAreaLayoutItem::operator= ( const QDockAreaLayoutItem & other)

Definition at line 149 of file qdockarealayout.cpp.

References other(), placeHolderItem, pos, subinfo, and widgetItem.

+ Here is the call graph for this function:

◆ sizeHint()

QSize QDockAreaLayoutItem::sizeHint ( ) const

Definition at line 137 of file qdockarealayout.cpp.

References placeHolderItem, QDockAreaLayoutInfo::sizeHint(), QLayoutItem::sizeHint(), subinfo, QLayoutItem::widget(), and widgetItem.

+ Here is the call graph for this function:

◆ skip()

bool QDockAreaLayoutItem::skip ( ) const

Definition at line 82 of file qdockarealayout.cpp.

References QList< T >::at(), GapItem, i, QLayoutItem::isEmpty(), QDockAreaLayoutInfo::item_list, placeHolderItem, QList< T >::size(), skip(), subinfo, and widgetItem.

Referenced by QDockAreaLayoutInfo::next(), QDockAreaLayoutInfo::prev(), and skip().

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

Friends And Related Symbol Documentation

◆ operator<< [1/2]

Q_AUTOTEST_EXPORT QDebug operator<< ( QDebug dbg,
const QDockAreaLayoutItem & item )
friend

Definition at line 182 of file qdockarealayout.cpp.

◆ operator<< [2/2]

Q_AUTOTEST_EXPORT QDebug operator<< ( QDebug dbg,
const QDockAreaLayoutItem * item )
friend

Definition at line 175 of file qdockarealayout.cpp.

Member Data Documentation

◆ flags

◆ placeHolderItem

QPlaceHolderItem* QDockAreaLayoutItem::placeHolderItem

◆ pos

int QDockAreaLayoutItem::pos

Definition at line 72 of file qdockarealayout_p.h.

Referenced by operator=().

◆ size

int QDockAreaLayoutItem::size

Definition at line 73 of file qdockarealayout_p.h.

◆ subinfo

◆ widgetItem


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