QwuiBoxLayout Class Reference

Box layout used to lay out widgets horizontally or vertically. This is the base class used for QwuiHBoxLayout and QwuiVBoxLayout. More...

#include <qwuiboxlayout.h>

Inheritance diagram for QwuiBoxLayout:
QwuiLayout QwuiLayoutItem QwuiHBoxLayout QwuiVBoxLayout

List of all members.

Public Member Functions

 QwuiBoxLayout (QwuiWebget *parent, Unit unit=RelativeStrength)
 QwuiBoxLayout (Unit unit=RelativeStrength)
virtual ~QwuiBoxLayout ()
virtual void addItem (QwuiLayoutItem *item, int size=1)
void addWebget (QwuiWebget *w, int size=1)
void addLayout (QwuiLayout *l, int size=1)
void addStretch (int size=1)
virtual void insertItem (int index, QwuiLayoutItem *item, int size=1)
void insertWebget (int index, QwuiWebget *w, int size=1)
void insertLayout (int index, QwuiLayout *l, int size=1)
void insertStretch (int index, int size=1)
virtual void removeItem (QwuiLayoutItem *item)
virtual int count () const
virtual int indexOf (QwuiWebget *w) const
virtual bool contains (QwuiWebget *w) const
virtual QwuiLayoutItemitemAt (int index) const
virtual QwuiLayoutItemtakeAt (int index)
void itemSize (int index, int size)

Protected Member Functions

QPair< QwuiLayoutItem *, int > boxItemAt (int index) const

Private Types

typedef QList< QPair
< QwuiLayoutItem *, int > > 
ItemList

Private Attributes

ItemList m_items

Detailed Description

Box layout used to lay out widgets horizontally or vertically. This is the base class used for QwuiHBoxLayout and QwuiVBoxLayout.


Member Typedef Documentation

typedef QList<QPair<QwuiLayoutItem*, int> > QwuiBoxLayout::ItemList [private]

Constructor & Destructor Documentation

QwuiBoxLayout::QwuiBoxLayout ( QwuiWebget parent,
Unit  unit = RelativeStrength 
)
QwuiBoxLayout::QwuiBoxLayout ( Unit  unit = RelativeStrength  ) 
QwuiBoxLayout::~QwuiBoxLayout (  )  [virtual]

Member Function Documentation

void QwuiBoxLayout::addItem ( QwuiLayoutItem item,
int  size = 1 
) [virtual]
void QwuiBoxLayout::addLayout ( QwuiLayout l,
int  size = 1 
)
void QwuiBoxLayout::addStretch ( int  size = 1  ) 
void QwuiBoxLayout::addWebget ( QwuiWebget w,
int  size = 1 
)
QPair< QwuiLayoutItem *, int > QwuiBoxLayout::boxItemAt ( int  index  )  const [protected]
bool QwuiBoxLayout::contains ( QwuiWebget w  )  const [virtual]

Implements QwuiLayout.

int QwuiBoxLayout::count (  )  const [virtual]

Implements QwuiLayout.

int QwuiBoxLayout::indexOf ( QwuiWebget w  )  const [virtual]

Implements QwuiLayout.

void QwuiBoxLayout::insertItem ( int  index,
QwuiLayoutItem item,
int  size = 1 
) [virtual]
void QwuiBoxLayout::insertLayout ( int  index,
QwuiLayout l,
int  size = 1 
)
void QwuiBoxLayout::insertStretch ( int  index,
int  size = 1 
)
void QwuiBoxLayout::insertWebget ( int  index,
QwuiWebget w,
int  size = 1 
)
QwuiLayoutItem * QwuiBoxLayout::itemAt ( int  index  )  const [virtual]

Implements QwuiLayout.

void QwuiBoxLayout::itemSize ( int  index,
int  size 
)
void QwuiBoxLayout::removeItem ( QwuiLayoutItem item  )  [virtual]

Implements QwuiLayout.

QwuiLayoutItem * QwuiBoxLayout::takeAt ( int  index  )  [virtual]

Implements QwuiLayout.


Member Data Documentation


The documentation for this class was generated from the following files:
Generated on Fri Jun 4 01:18:58 2010 for QtWui : Web User Interfaces for Qt by  doxygen 1.6.3