Eneboo - Documentación para desarrolladores
|
Métodos públicos | |
QMainWindowLayout (QMainWindow *mw, QLayout *parent=0) | |
~QMainWindowLayout () | |
void | addItem (QLayoutItem *) |
void | setLeftDock (QDockArea *l) |
void | setRightDock (QDockArea *r) |
void | setCentralWidget (QWidget *w) |
bool | hasHeightForWidth () const |
QSize | sizeHint () const |
QSize | minimumSize () const |
QLayoutIterator | iterator () |
QSizePolicy::ExpandData | expanding () const |
void | invalidate () |
Métodos protegidos | |
void | setGeometry (const QRect &r) |
QMainWindowLayout::QMainWindowLayout | ( | QMainWindow * | mw, |
QLayout * | parent = 0 |
||
) |
QMainWindowLayout::~QMainWindowLayout | ( | ) | [inline] |
void QMainWindowLayout::addItem | ( | QLayoutItem * | item | ) | [virtual] |
Implemented in subclasses to add an item. How it is added is specific to each subclass.
The ownership of item is transferred to the layout, and it's the layout's responsibility to delete it.
Implementa QLayout.
QSizePolicy::ExpandData QMainWindowLayout::expanding | ( | ) | const [inline, virtual] |
Returns whether this layout can make use of more space than sizeHint(). A value of Vertical
or Horizontal
means that it wants to grow in only one dimension, whereas BothDirections
means that it wants to grow in both dimensions.
The default implementation returns BothDirections
.
Reimplementado de QLayout.
bool QMainWindowLayout::hasHeightForWidth | ( | ) | const [inline, virtual] |
Returns TRUE if this layout's preferred height depends on its width; otherwise returns FALSE. The default implementation returns FALSE.
Reimplement this function in layout managers that support height for width.
Reimplementado de QLayoutItem.
void QMainWindowLayout::invalidate | ( | ) | [inline, virtual] |
Invalidates cached information. Reimplementations must call this.
Reimplementado de QLayout.
QLayoutIterator QMainWindowLayout::iterator | ( | ) | [virtual] |
Implemented in subclasses to return an iterator that iterates over this layout's children.
A typical implementation will be:
QLayoutIterator MyLayout::iterator() { QGLayoutIterator *i = new MyLayoutIterator( internal_data ); return QLayoutIterator( i ); }
where MyLayoutIterator is a subclass of QGLayoutIterator.
Implementa QLayout.
QSize QMainWindowLayout::minimumSize | ( | ) | const [virtual] |
void QMainWindowLayout::setCentralWidget | ( | QWidget * | w | ) |
void QMainWindowLayout::setGeometry | ( | const QRect & | r | ) | [inline, protected, virtual] |
This function is reimplemented in subclasses to perform layout.
The default implementation maintains the geometry() information given by rect r. Reimplementors must call this function.
Implementa QLayout.
void QMainWindowLayout::setLeftDock | ( | QDockArea * | l | ) |
void QMainWindowLayout::setRightDock | ( | QDockArea * | r | ) |
QSize QMainWindowLayout::sizeHint | ( | ) | const [virtual] |
Implemented in subclasses to return the preferred size of this item.
Implementa QLayoutItem.