Eneboo - Documentación para desarrolladores
|
#include <qdockarea.h>
QDockAreaLayout::QDockAreaLayout | ( | QWidget * | parent, |
Qt::Orientation | o, | ||
QPtrList< QDockWindow > * | wl, | ||
int | space = -1 , |
||
int | margin = -1 , |
||
const char * | name = 0 |
||
) | [inline] |
QDockAreaLayout::~QDockAreaLayout | ( | ) | [inline] |
QDockAreaLayout::QDockAreaLayout | ( | QWidget * | parent, |
Qt::Orientation | o, | ||
QPtrList< QDockWindow > * | wl, | ||
int | space = -1 , |
||
int | margin = -1 , |
||
const char * | name = 0 |
||
) | [inline] |
QDockAreaLayout::~QDockAreaLayout | ( | ) | [inline] |
void QDockAreaLayout::addItem | ( | QLayoutItem * | item | ) | [inline, 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.
void QDockAreaLayout::addItem | ( | QLayoutItem * | item | ) | [inline, 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 QDockAreaLayout::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.
QSizePolicy::ExpandData QDockAreaLayout::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 QDockAreaLayout::hasHeightForWidth | ( | ) | const [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.
bool QDockAreaLayout::hasHeightForWidth | ( | ) | const [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.
Returns the preferred height for this layout item, given the width w.
The default implementation returns -1, indicating that the preferred height is independent of the width of the item. Using the function hasHeightForWidth() will typically be much faster than calling this function and testing for -1.
Reimplement this function in layout managers that support height for width. A typical implementation will look like this:
int MyLayout::heightForWidth( int w ) const { if ( cache_dirty || cached_width != w ) { // not all C++ compilers support "mutable" MyLayout *that = (MyLayout*)this; int h = calculateHeightForWidth( w ); that->cached_hfw = h; return h; } return cached_hfw; }
Caching is strongly recommended; without it layout will take exponential time.
Reimplementado de QLayoutItem.
Returns the preferred height for this layout item, given the width w.
The default implementation returns -1, indicating that the preferred height is independent of the width of the item. Using the function hasHeightForWidth() will typically be much faster than calling this function and testing for -1.
Reimplement this function in layout managers that support height for width. A typical implementation will look like this:
int MyLayout::heightForWidth( int w ) const { if ( cache_dirty || cached_width != w ) { // not all C++ compilers support "mutable" MyLayout *that = (MyLayout*)this; int h = calculateHeightForWidth( w ); that->cached_hfw = h; return h; } return cached_hfw; }
Caching is strongly recommended; without it layout will take exponential time.
Reimplementado de QLayoutItem.
void QDockAreaLayout::invalidate | ( | ) | [virtual] |
Invalidates cached information. Reimplementations must call this.
Reimplementado de QLayout.
void QDockAreaLayout::invalidate | ( | ) | [virtual] |
Invalidates cached information. Reimplementations must call this.
Reimplementado de QLayout.
QLayoutIterator QDockAreaLayout::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.
QLayoutIterator QDockAreaLayout::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.
QValueList<QRect> QDockAreaLayout::lineList | ( | ) | const [inline] |
QValueList<QRect> QDockAreaLayout::lineList | ( | ) | const [inline] |
QPtrList<QDockWindow> QDockAreaLayout::lineStarts | ( | ) | const [inline] |
QPtrList<QDockWindow> QDockAreaLayout::lineStarts | ( | ) | const [inline] |
QSize QDockAreaLayout::minimumSize | ( | ) | const [virtual] |
QSize QDockAreaLayout::minimumSize | ( | ) | const [virtual] |
Qt::Orientation QDockAreaLayout::orientation | ( | ) | const [inline] |
Qt::Orientation QDockAreaLayout::orientation | ( | ) | const [inline] |
void QDockAreaLayout::setGeometry | ( | const QRect & | r | ) | [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 QDockAreaLayout::setGeometry | ( | const QRect & | r | ) | [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.
QSize QDockAreaLayout::sizeHint | ( | ) | const [virtual] |
Implemented in subclasses to return the preferred size of this item.
Implementa QLayoutItem.
QSize QDockAreaLayout::sizeHint | ( | ) | const [virtual] |
Implemented in subclasses to return the preferred size of this item.
Implementa QLayoutItem.
QDockArea [friend] |