Qt 4.8
|
#include <qgraphicslayout_p.h>
Public Functions | |
void | activateRecursive (QGraphicsLayoutItem *item) |
void | addChildLayoutItem (QGraphicsLayoutItem *item) |
This function is called from subclasses to add a layout item layoutItem to a layout. More... | |
void | getMargin (qreal *result, qreal userMargin, QStyle::PixelMetric pm) const |
QGraphicsLayoutPrivate () | |
void | reparentChildItems (QGraphicsItem *newParent) |
Qt::LayoutDirection | visualDirection () const |
Public Functions inherited from QGraphicsLayoutItemPrivate | |
QSizeF * | effectiveSizeHints (const QSizeF &constraint) const |
void | ensureUserSizeHints () |
Ensures that userSizeHints is allocated. More... | |
bool | hasHeightForWidth () const |
bool | hasWidthForHeight () const |
void | init () |
QGraphicsItem * | parentItem () const |
Returns the parent item of this layout, or 0 if this layout is not installed on any widget. More... | |
QGraphicsLayoutItemPrivate (QGraphicsLayoutItem *parent, bool isLayout) | |
void | setSize (Qt::SizeHint which, const QSizeF &size) |
Sets the user size hint which to size. More... | |
void | setSizeComponent (Qt::SizeHint which, SizeComponent component, qreal value) |
Sets the width of the user size hint which to width. More... | |
virtual | ~QGraphicsLayoutItemPrivate () |
Public Variables | |
bool | activated |
qreal | bottom |
qreal | left |
qreal | right |
qreal | top |
Public Variables inherited from QGraphicsLayoutItemPrivate | |
QSizeF | cachedConstraint |
QSizeF | cachedSizeHints [Qt::NSizeHints] |
QSizeF | cachedSizeHintsWithConstraints [Qt::NSizeHints] |
QRectF | geom |
QGraphicsItem * | graphicsItem |
quint32 | isLayout: 1 |
quint32 | ownedByLayout: 1 |
QGraphicsLayoutItem * | parent |
QGraphicsLayoutItem * | q_ptr |
quint32 | sizeHintCacheDirty: 1 |
quint32 | sizeHintWithConstraintCacheDirty: 1 |
QSizePolicy | sizePolicy |
QSizeF * | userSizeHints |
Additional Inherited Members | |
Public Types inherited from QGraphicsLayoutItemPrivate | |
enum | SizeComponent { Width, Height } |
Static Public Functions inherited from QGraphicsLayoutItemPrivate | |
static QGraphicsLayoutItemPrivate * | get (QGraphicsLayoutItem *q) |
static const QGraphicsLayoutItemPrivate * | get (const QGraphicsLayoutItem *q) |
Definition at line 130 of file qgraphicslayout_p.h.
|
inline |
Definition at line 135 of file qgraphicslayout_p.h.
void QGraphicsLayoutPrivate::activateRecursive | ( | QGraphicsLayoutItem * | item | ) |
Definition at line 182 of file qgraphicslayout_p.cpp.
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 150 of file qgraphicslayout_p.cpp.
Referenced by QGraphicsAnchorLayoutPrivate::addAnchor().
void QGraphicsLayoutPrivate::getMargin | ( | qreal * | result, |
qreal | userMargin, | ||
QStyle::PixelMetric | pm | ||
) | const |
Definition at line 87 of file qgraphicslayout_p.cpp.
void QGraphicsLayoutPrivate::reparentChildItems | ( | QGraphicsItem * | newParent | ) |
mw is the new parent. all items in the layout will be a child of mw.
Definition at line 58 of file qgraphicslayout_p.cpp.
Qt::LayoutDirection QGraphicsLayoutPrivate::visualDirection | ( | ) | const |
Definition at line 109 of file qgraphicslayout_p.cpp.
Referenced by QGraphicsAnchorLayoutPrivate::setItemsGeometries().
bool QGraphicsLayoutPrivate::activated |
Definition at line 146 of file qgraphicslayout_p.h.
qreal QGraphicsLayoutPrivate::bottom |
Definition at line 145 of file qgraphicslayout_p.h.
qreal QGraphicsLayoutPrivate::left |
Definition at line 145 of file qgraphicslayout_p.h.
Referenced by QGraphicsAnchorLayoutPrivate::setItemsGeometries().
qreal QGraphicsLayoutPrivate::right |
Definition at line 145 of file qgraphicslayout_p.h.
Referenced by QGraphicsAnchorLayoutPrivate::setItemsGeometries().
qreal QGraphicsLayoutPrivate::top |
Definition at line 145 of file qgraphicslayout_p.h.
Referenced by QGraphicsAnchorLayoutPrivate::setItemsGeometries().