Qt 4.8
Public Functions | Public Variables | List of all members
QFormLayoutItem Struct Reference

Public Functions

QSizePolicy::ControlTypes controlTypes () const
 
Qt::Orientations expandingDirections () const
 
QRect geometry () const
 
bool hasHeightForWidth () const
 
int heightForWidth (int width) const
 
QLayoutlayout () const
 
int minimumHeightForWidth (int width) const
 
bool operator== (const QFormLayoutItem &other)
 
 QFormLayoutItem (QLayoutItem *i)
 
void setGeometry (const QRect &r)
 
int vStretch () const
 
QWidgetwidget () const
 
 ~QFormLayoutItem ()
 

Public Variables

bool fullRow
 
bool isHfw
 
QLayoutItemitem
 
int layoutPos
 
int layoutWidth
 
QSize maxSize
 
QSize minSize
 
int sbsHSpace
 
bool sideBySide
 
QSize sizeHint
 
int vLayoutIndex
 
int vSpace
 

Detailed Description

Definition at line 134 of file qformlayout.cpp.

Constructors and Destructors

◆ QFormLayoutItem()

QFormLayoutItem::QFormLayoutItem ( QLayoutItem i)
inline

Definition at line 136 of file qformlayout.cpp.

136 : item(i), fullRow(false), isHfw(false) { }
QLayoutItem * item

◆ ~QFormLayoutItem()

QFormLayoutItem::~QFormLayoutItem ( )
inline

Definition at line 137 of file qformlayout.cpp.

137 { delete item; }
QLayoutItem * item

Functions

◆ controlTypes()

QSizePolicy::ControlTypes QFormLayoutItem::controlTypes ( ) const
inline

Definition at line 147 of file qformlayout.cpp.

Referenced by spacingHelper(), and QFormLayoutPrivate::updateSizes().

147 { return item->controlTypes(); }
QSizePolicy::ControlTypes controlTypes() const
Returns the control type(s) for the layout item.
QLayoutItem * item

◆ expandingDirections()

Qt::Orientations QFormLayoutItem::expandingDirections ( ) const
inline

Definition at line 146 of file qformlayout.cpp.

Referenced by QFormLayoutPrivate::arrangeWidgets(), initLayoutStruct(), QFormLayoutPrivate::setupVerticalLayoutData(), and QFormLayoutPrivate::updateSizes().

146 { return item->expandingDirections(); }
virtual Qt::Orientations expandingDirections() const =0
Returns whether this layout item can make use of more space than sizeHint().
QLayoutItem * item

◆ geometry()

QRect QFormLayoutItem::geometry ( ) const
inline

Definition at line 151 of file qformlayout.cpp.

Referenced by spacingHelper().

151 { return item->geometry(); }
virtual QRect geometry() const =0
Returns the rectangle covered by this layout item.
QLayoutItem * item

◆ hasHeightForWidth()

bool QFormLayoutItem::hasHeightForWidth ( ) const
inline

Definition at line 143 of file qformlayout.cpp.

143 { return item->hasHeightForWidth(); }
virtual bool hasHeightForWidth() const
Returns true if this layout's preferred height depends on its width; otherwise returns false...
QLayoutItem * item

◆ heightForWidth()

int QFormLayoutItem::heightForWidth ( int  width) const
inline

Definition at line 144 of file qformlayout.cpp.

Referenced by QFormLayoutPrivate::setupHfwLayoutData().

144 { return item->heightForWidth(width); }
QLayoutItem * item
virtual int heightForWidth(int) const
Returns the preferred height for this layout item, given the width w.

◆ layout()

QLayout* QFormLayoutItem::layout ( ) const
inline

Definition at line 141 of file qformlayout.cpp.

141 { return item->layout(); }
virtual QLayout * layout()
If this item is a QLayout, it is returned as a QLayout; otherwise 0 is returned.
QLayoutItem * item

◆ minimumHeightForWidth()

int QFormLayoutItem::minimumHeightForWidth ( int  width) const
inline

Definition at line 145 of file qformlayout.cpp.

145 { return item->minimumHeightForWidth(width); }
virtual int minimumHeightForWidth(int) const
Returns the minimum height this widget needs for the given width, w.
QLayoutItem * item

◆ operator==()

bool QFormLayoutItem::operator== ( const QFormLayoutItem other)
inline

Definition at line 154 of file qformlayout.cpp.

154 { return item == other.item; }
QLayoutItem * item

◆ setGeometry()

void QFormLayoutItem::setGeometry ( const QRect r)
inline

Definition at line 150 of file qformlayout.cpp.

Referenced by QFormLayoutPrivate::arrangeWidgets().

150 { item->setGeometry(r); }
virtual void setGeometry(const QRect &)=0
Implemented in subclasses to set this item's geometry to r.
QLayoutItem * item

◆ vStretch()

int QFormLayoutItem::vStretch ( ) const
inline

Definition at line 148 of file qformlayout.cpp.

Referenced by initLayoutStruct(), and QFormLayoutPrivate::setupVerticalLayoutData().

148 { return widget() ? widget()->sizePolicy().verticalStretch() : 0; }
int verticalStretch() const
Definition: qsizepolicy.h:145
QWidget * widget() const
QSizePolicy sizePolicy
the default layout behavior of the widget
Definition: qwidget.h:171

◆ widget()

QWidget* QFormLayoutItem::widget ( ) const
inline

Definition at line 140 of file qformlayout.cpp.

140 { return item->widget(); }
QLayoutItem * item
virtual QWidget * widget()
If this item is a QWidget, it is returned as a QWidget; otherwise 0 is returned.

Properties

◆ fullRow

bool QFormLayoutItem::fullRow

◆ isHfw

bool QFormLayoutItem::isHfw

◆ item

QLayoutItem* QFormLayoutItem::item

Definition at line 156 of file qformlayout.cpp.

Referenced by operator==(), spacingHelper(), and updateFormLayoutItem().

◆ layoutPos

int QFormLayoutItem::layoutPos

◆ layoutWidth

int QFormLayoutItem::layoutWidth

◆ maxSize

QSize QFormLayoutItem::maxSize

◆ minSize

QSize QFormLayoutItem::minSize

◆ sbsHSpace

int QFormLayoutItem::sbsHSpace

◆ sideBySide

bool QFormLayoutItem::sideBySide

◆ sizeHint

QSize QFormLayoutItem::sizeHint

◆ vLayoutIndex

int QFormLayoutItem::vLayoutIndex

◆ vSpace

int QFormLayoutItem::vSpace

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