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
QLayoutStyleInfo Class Reference

#include <qgraphicslayout_p.h>

+ Collaboration diagram for QLayoutStyleInfo:

Public Member Functions

 QLayoutStyleInfo ()
 
 QLayoutStyleInfo (QStyle *style, QWidget *widget)
 
void invalidate ()
 
QStylestyle () const
 
QWidgetwidget () const
 
bool operator== (const QLayoutStyleInfo &other) const
 
bool operator!= (const QLayoutStyleInfo &other) const
 
void setDefaultSpacing (Qt::Orientation o, qreal spacing)
 
qreal defaultSpacing (Qt::Orientation o) const
 
qreal perItemSpacing (QSizePolicy::ControlType control1, QSizePolicy::ControlType control2, Qt::Orientation orientation) const
 

Detailed Description

Definition at line 44 of file qgraphicslayout_p.h.

Constructor & Destructor Documentation

◆ QLayoutStyleInfo() [1/2]

QLayoutStyleInfo::QLayoutStyleInfo ( )
inline

Definition at line 47 of file qgraphicslayout_p.h.

References invalidate().

+ Here is the call graph for this function:

◆ QLayoutStyleInfo() [2/2]

QLayoutStyleInfo::QLayoutStyleInfo ( QStyle * style,
QWidget * widget )
inline

Definition at line 48 of file qgraphicslayout_p.h.

References QStyleOption::initFrom(), QStyle::pixelMetric(), QStyle::PM_LayoutHorizontalSpacing, QStyle::PM_LayoutVerticalSpacing, Q_ASSERT, style(), and widget().

+ Here is the call graph for this function:

Member Function Documentation

◆ defaultSpacing()

qreal QLayoutStyleInfo::defaultSpacing ( Qt::Orientation o) const
inline

Definition at line 73 of file qgraphicslayout_p.h.

References o.

Referenced by QtGraphicsAnchorLayout::AnchorData::refreshSizeHints().

+ Here is the caller graph for this function:

◆ invalidate()

void QLayoutStyleInfo::invalidate ( )
inline

Definition at line 58 of file qgraphicslayout_p.h.

Referenced by QLayoutStyleInfo().

+ Here is the caller graph for this function:

◆ operator!=()

bool QLayoutStyleInfo::operator!= ( const QLayoutStyleInfo & other) const
inline

Definition at line 65 of file qgraphicslayout_p.h.

References other().

+ Here is the call graph for this function:

◆ operator==()

bool QLayoutStyleInfo::operator== ( const QLayoutStyleInfo & other) const
inline

Definition at line 63 of file qgraphicslayout_p.h.

References other().

+ Here is the call graph for this function:

◆ perItemSpacing()

qreal QLayoutStyleInfo::perItemSpacing ( QSizePolicy::ControlType control1,
QSizePolicy::ControlType control2,
Qt::Orientation orientation ) const
inline

Definition at line 77 of file qgraphicslayout_p.h.

References QStyle::layoutSpacing(), Q_ASSERT, style(), and widget().

Referenced by QtGraphicsAnchorLayout::AnchorData::refreshSizeHints().

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

◆ setDefaultSpacing()

void QLayoutStyleInfo::setDefaultSpacing ( Qt::Orientation o,
qreal spacing )
inline

Definition at line 68 of file qgraphicslayout_p.h.

References o, and spacing.

Referenced by QGraphicsAnchorLayoutPrivate::styleInfo().

+ Here is the caller graph for this function:

◆ style()

QStyle * QLayoutStyleInfo::style ( ) const
inline

Definition at line 60 of file qgraphicslayout_p.h.

Referenced by QLayoutStyleInfo(), and perItemSpacing().

+ Here is the caller graph for this function:

◆ widget()

QWidget * QLayoutStyleInfo::widget ( ) const
inline

Definition at line 61 of file qgraphicslayout_p.h.

Referenced by QLayoutStyleInfo(), and perItemSpacing().

+ Here is the caller graph for this function:

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