Qt 4.8
Public Functions | Public Variables | List of all members
QGraphicsGridLayoutPrivate Class Reference
Inheritance diagram for QGraphicsGridLayoutPrivate:
QGraphicsLayoutPrivate QGraphicsLayoutItemPrivate

Public Functions

void dump (int indent) const
 
 QGraphicsGridLayoutPrivate ()
 
QLayoutStyleInfo styleInfo () const
 
- Public Functions inherited from QGraphicsLayoutPrivate
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
QSizeFeffectiveSizeHints (const QSizeF &constraint) const
 
void ensureUserSizeHints ()
 Ensures that userSizeHints is allocated. More...
 
bool hasHeightForWidth () const
 
bool hasWidthForHeight () const
 
void init ()
 
QGraphicsItemparentItem () 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

QGridLayoutEngine engine
 
- Public Variables inherited from QGraphicsLayoutPrivate
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
 
QGraphicsItemgraphicsItem
 
quint32 isLayout: 1
 
quint32 ownedByLayout: 1
 
QGraphicsLayoutItemparent
 
QGraphicsLayoutItemq_ptr
 
quint32 sizeHintCacheDirty: 1
 
quint32 sizeHintWithConstraintCacheDirty: 1
 
QSizePolicy sizePolicy
 
QSizeFuserSizeHints
 

Additional Inherited Members

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

Detailed Description

Definition at line 99 of file qgraphicsgridlayout.cpp.

Constructors and Destructors

◆ QGraphicsGridLayoutPrivate()

QGraphicsGridLayoutPrivate::QGraphicsGridLayoutPrivate ( )
inline

Definition at line 102 of file qgraphicsgridlayout.cpp.

102 { }

Functions

◆ dump()

void QGraphicsGridLayoutPrivate::dump ( int  indent) const

Definition at line 633 of file qgraphicsgridlayout.cpp.

634 {
635  if (qt_graphicsLayoutDebug()) {
636  engine.dump(indent + 1);
637  }
638 }
void dump(int indent=0) const
bool qt_graphicsLayoutDebug()

◆ styleInfo()

QLayoutStyleInfo QGraphicsGridLayoutPrivate::styleInfo ( ) const

Definition at line 113 of file qgraphicsgridlayout.cpp.

Referenced by QGraphicsGridLayoutPrivate().

114 {
115  QGraphicsItem *item = parentItem();
116  QStyle *style = (item && item->isWidget()) ? static_cast<QGraphicsWidget*>(item)->style() : QApplication::style();
117  return QLayoutStyleInfo(style, globalStyleInfoWidget());
118 }
The QGraphicsItem class is the base class for all graphical items in a QGraphicsScene.
Definition: qgraphicsitem.h:89
static QStyle * style()
Returns the application&#39;s style object.
QGraphicsItem * parentItem() const
Returns the parent item of this layout, or 0 if this layout is not installed on any widget...
The QStyle class is an abstract base class that encapsulates the look and feel of a GUI...
Definition: qstyle.h:68
bool isWidget() const
Returns true if this item is a widget (i.

Properties

◆ engine

QGridLayoutEngine QGraphicsGridLayoutPrivate::engine

Definition at line 105 of file qgraphicsgridlayout.cpp.


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