Qt 6.x
The Qt SDK
Loading...
Searching...
No Matches
QtGraphicsAnchorLayout::SequentialAnchorData Struct Reference

#include <qgraphicsanchorlayout_p.h>

+ Inheritance diagram for QtGraphicsAnchorLayout::SequentialAnchorData:
+ Collaboration diagram for QtGraphicsAnchorLayout::SequentialAnchorData:

Public Member Functions

 SequentialAnchorData (const QList< AnchorVertex * > &vertices, const QList< AnchorData * > &edges)
 
virtual void updateChildrenSizes () override
 
void calculateSizeHints ()
 
- Public Member Functions inherited from QtGraphicsAnchorLayout::AnchorData
 AnchorData ()
 
virtual ~AnchorData ()
 
virtual void updateChildrenSizes ()
 
void refreshSizeHints (const QLayoutStyleInfo *styleInfo=nullptr)
 
- Public Member Functions inherited from QSimplexVariable
 QSimplexVariable ()
 

Public Attributes

QList< AnchorVertex * > m_children
 
QList< AnchorData * > m_edges
 
- Public Attributes inherited from QtGraphicsAnchorLayout::AnchorData
AnchorVertexfrom
 
AnchorVertexto
 
qreal minSize
 
qreal prefSize
 
qreal maxSize
 
qreal minPrefSize
 
qreal maxPrefSize
 
qreal sizeAtMinimum
 
qreal sizeAtPreferred
 
qreal sizeAtMaximum
 
QGraphicsLayoutItemitem
 
QGraphicsAnchorgraphicsAnchor
 
uint type: 2
 
uint isLayoutAnchor: 1
 
uint isCenterAnchor: 1
 
uint isVertical: 1
 
uint dependency: 2
 
- Public Attributes inherited from QSimplexVariable
qreal result
 
int index
 

Additional Inherited Members

- Public Types inherited from QtGraphicsAnchorLayout::AnchorData
enum  Type { Normal = 0 , Sequential , Parallel }
 
enum  Dependency { Independent = 0 , Master , Slave }
 

Detailed Description

Definition at line 155 of file qgraphicsanchorlayout_p.h.

Constructor & Destructor Documentation

◆ SequentialAnchorData()

QtGraphicsAnchorLayout::SequentialAnchorData::SequentialAnchorData ( const QList< AnchorVertex * > &  vertices,
const QList< AnchorData * > &  edges 
)
inline

Definition at line 157 of file qgraphicsanchorlayout_p.h.

References QString::arg(), QList< T >::at(), QList< T >::first(), QString::fromLatin1(), QtGraphicsAnchorLayout::AnchorData::isVertical, QList< T >::last(), m_edges, and QtGraphicsAnchorLayout::AnchorData::Sequential.

+ Here is the call graph for this function:

Member Function Documentation

◆ calculateSizeHints()

void SequentialAnchorData::calculateSizeHints ( )

Definition at line 489 of file qgraphicsanchorlayout_p.cpp.

References QList< T >::at(), QtGraphicsAnchorLayout::AnchorData::from, i, m_edges, QtGraphicsAnchorLayout::AnchorData::maxPrefSize, QtGraphicsAnchorLayout::AnchorData::maxSize, QtGraphicsAnchorLayout::AnchorData::minPrefSize, QtGraphicsAnchorLayout::AnchorData::minSize, QtGraphicsAnchorLayout::AnchorData::prefSize, Q_ASSERT, QList< T >::size(), QtGraphicsAnchorLayout::AnchorData::sizeAtMaximum, QtGraphicsAnchorLayout::AnchorData::sizeAtMinimum, QtGraphicsAnchorLayout::AnchorData::sizeAtPreferred, and QtGraphicsAnchorLayout::AnchorData::to.

Referenced by createSequence().

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

◆ updateChildrenSizes()

Member Data Documentation

◆ m_children

QList<AnchorVertex *> QtGraphicsAnchorLayout::SequentialAnchorData::m_children

Definition at line 170 of file qgraphicsanchorlayout_p.h.

◆ m_edges

QList<AnchorData *> QtGraphicsAnchorLayout::SequentialAnchorData::m_edges

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