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

#include <qgraphicslayout_p.h>

+ Inheritance diagram for QGraphicsLayoutPrivate:
+ Collaboration diagram for QGraphicsLayoutPrivate:

Public Member Functions

 QGraphicsLayoutPrivate ()
 
void reparentChildItems (QGraphicsItem *newParent)
 
void getMargin (qreal *result, qreal userMargin, QStyle::PixelMetric pm) const
 
Qt::LayoutDirection visualDirection () const
 
void addChildLayoutItem (QGraphicsLayoutItem *item)
 
void activateRecursive (QGraphicsLayoutItem *item)
 
- Public Member Functions inherited from QGraphicsLayoutItemPrivate
virtual ~QGraphicsLayoutItemPrivate ()
 
 QGraphicsLayoutItemPrivate (QGraphicsLayoutItem *parent, bool isLayout)
 
void init ()
 
QSizeFeffectiveSizeHints (const QSizeF &constraint) const
 
QGraphicsItemparentItem () const
 
void ensureUserSizeHints ()
 
void setSize (Qt::SizeHint which, const QSizeF &size)
 
void setSizeComponent (Qt::SizeHint which, SizeComponent component, qreal value)
 
bool hasHeightForWidth () const
 
bool hasWidthForHeight () const
 

Public Attributes

qreal left
 
qreal top
 
qreal right
 
qreal bottom
 
bool activated
 
- Public Attributes inherited from QGraphicsLayoutItemPrivate
QSizePolicy sizePolicy
 
QGraphicsLayoutItemparent
 
QSizeFuserSizeHints
 
QSizeF cachedSizeHints [Qt::NSizeHints]
 
QSizeF cachedConstraint
 
QSizeF cachedSizeHintsWithConstraints [Qt::NSizeHints]
 
quint32 sizeHintCacheDirty: 1
 
quint32 sizeHintWithConstraintCacheDirty: 1
 
quint32 isLayout: 1
 
quint32 ownedByLayout: 1
 
QGraphicsLayoutItemq_ptr
 
QRectF geom
 
QGraphicsItemgraphicsItem
 

Additional Inherited Members

- Public Types inherited from QGraphicsLayoutItemPrivate
enum  SizeComponent { Width , Height }
 
- Static Public Member Functions inherited from QGraphicsLayoutItemPrivate
static QGraphicsLayoutItemPrivateget (QGraphicsLayoutItem *q)
 
static const QGraphicsLayoutItemPrivateget (const QGraphicsLayoutItem *q)
 

Detailed Description

Definition at line 92 of file qgraphicslayout_p.h.

Constructor & Destructor Documentation

◆ QGraphicsLayoutPrivate()

QGraphicsLayoutPrivate::QGraphicsLayoutPrivate ( )
inline

Definition at line 97 of file qgraphicslayout_p.h.

Member Function Documentation

◆ activateRecursive()

void QGraphicsLayoutPrivate::activateRecursive ( QGraphicsLayoutItem * item)

Definition at line 139 of file qgraphicslayout_p.cpp.

References activateRecursive(), QBoxLayout::count(), i, QGraphicsLayout::instantInvalidatePropagation(), QBoxLayout::invalidate(), item, QBoxLayout::itemAt(), and layout.

Referenced by activateRecursive().

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

◆ addChildLayoutItem()

void QGraphicsLayoutPrivate::addChildLayoutItem ( QGraphicsLayoutItem * layoutItem)

This function is called from subclasses to add a layout item layoutItem to a layout.

It takes care of automatically reparenting graphics items, if needed.

If layoutItem is a is already in a layout, it will remove it from that layout.

Definition at line 107 of file qgraphicslayout_p.cpp.

References QGraphicsItem::isWidget(), item, layoutItem(), QGraphicsItem::parentItem(), QGraphicsLayoutItemPrivate::parentItem(), qWarning, removeLayoutItemFromLayout(), and QGraphicsItem::setParentItem().

Referenced by QGraphicsAnchorLayoutPrivate::addAnchor().

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

◆ getMargin()

void QGraphicsLayoutPrivate::getMargin ( qreal * result,
qreal userMargin,
QStyle::PixelMetric pm ) const

Definition at line 47 of file qgraphicslayout_p.cpp.

References QGraphicsLayoutItem::isLayout(), QGraphicsLayoutItemPrivate::parent, QGraphicsLayoutItemPrivate::parentItem(), QGraphicsLayoutItem::parentLayoutItem(), QStyle::pixelMetric(), and QGraphicsWidget::style().

+ Here is the call graph for this function:

◆ reparentChildItems()

QT_BEGIN_NAMESPACE void QGraphicsLayoutPrivate::reparentChildItems ( QGraphicsItem * newParent)

mw is the new parent. all items in the layout will be a child of mw.

Definition at line 18 of file qgraphicslayout_p.cpp.

References i, QGraphicsItem::isWidget(), QGraphicsItem::parentItem(), and qWarning.

+ Here is the call graph for this function:

◆ visualDirection()

Qt::LayoutDirection QGraphicsLayoutPrivate::visualDirection ( ) const

Definition at line 69 of file qgraphicslayout_p.cpp.

References QGuiApplication::layoutDirection, and QGraphicsLayoutItemPrivate::parentItem().

Referenced by QGraphicsAnchorLayoutPrivate::setItemsGeometries().

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

Member Data Documentation

◆ activated

bool QGraphicsLayoutPrivate::activated

Definition at line 108 of file qgraphicslayout_p.h.

◆ bottom

qreal QGraphicsLayoutPrivate::bottom

Definition at line 107 of file qgraphicslayout_p.h.

◆ left

qreal QGraphicsLayoutPrivate::left

◆ right

qreal QGraphicsLayoutPrivate::right

◆ top

qreal QGraphicsLayoutPrivate::top

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