Eneboo - Documentación para desarrolladores
Slots públicos | Métodos públicos | Métodos protegidos
Referencia de la Clase QToolBarSeparator
Diagrama de herencias de QToolBarSeparator
QWidget QObject QPaintDevice QObject QPaintDevice Qt Qt Qt Qt

Lista de todos los miembros.

Slots públicos

void setOrientation (Orientation)

Métodos públicos

 QToolBarSeparator (Orientation, QToolBar *parent, const char *name=0)
QSize sizeHint () const
Orientation orientation () const

Métodos protegidos

void styleChange (QStyle &)
void paintEvent (QPaintEvent *)

Documentación del constructor y destructor

QToolBarSeparator::QToolBarSeparator ( Orientation  o,
QToolBar parent,
const char *  name = 0 
)

Documentación de las funciones miembro

Orientation QToolBarSeparator::orientation ( ) const [inline]
void QToolBarSeparator::paintEvent ( QPaintEvent ) [protected, virtual]

This event handler can be reimplemented in a subclass to receive paint events.

A paint event is a request to repaint all or part of the widget. It can happen as a result of repaint() or update(), or because the widget was obscured and has now been uncovered, or for many other reasons.

Many widgets can simply repaint their entire surface when asked to, but some slow widgets need to optimize by painting only the requested region: QPaintEvent::region(). This speed optimization does not change the result, as painting is clipped to that region during event processing. QListView and QCanvas do this, for example.

Qt also tries to speed up painting by merging multiple paint events into one. When update() is called several times or the window system sends several paint events, Qt merges these events into one event with a larger region (see QRegion::unite()). repaint() does not permit this optimization, so we suggest using update() when possible.

When the paint event occurs, the update region has normally been erased, so that you're painting on the widget's background. There are a couple of exceptions and QPaintEvent::erased() tells you whether the widget has been erased or not.

The background can be set using setBackgroundMode(), setPaletteBackgroundColor() or setBackgroundPixmap(). The documentation for setBackgroundMode() elaborates on the background; we recommend reading it.

Ver también:
event(), repaint(), update(), QPainter, QPixmap, QPaintEvent

Reimplementado de QWidget.

void QToolBarSeparator::setOrientation ( Orientation  o) [slot]
QSize QToolBarSeparator::sizeHint ( ) const [virtual]

Reimplementado de QWidget.

void QToolBarSeparator::styleChange ( QStyle ) [protected, virtual]

This virtual function is called when the style of the widgets changes. oldStyle is the previous GUI style; you can get the new style from style().

Reimplement this function if your widget needs to know when its GUI style changes. You will almost certainly need to update the widget using update().

The default implementation updates the widget including its geometry.

Ver también:
QApplication::setStyle(), style(), update(), updateGeometry()

Reimplementado de QWidget.


La documentación para esta clase fue generada a partir del siguiente fichero:
 Todo Clases Namespaces Archivos Funciones Variables 'typedefs' Enumeraciones Valores de enumeraciones Propiedades Amigas 'defines'