Eneboo - Documentación para desarrolladores
|
QWorkspaceChild::QWorkspaceChild | ( | QWidget * | window, |
QWorkspace * | parent = 0 , |
||
const char * | name = 0 |
||
) |
QWorkspaceChild::~QWorkspaceChild | ( | ) |
void QWorkspaceChild::activate | ( | ) | [slot] |
void QWorkspaceChild::adjustToFullscreen | ( | ) |
void QWorkspaceChild::childEvent | ( | QChildEvent * | ) | [protected, virtual] |
This event handler can be reimplemented in a subclass to receive child events.
Child events are sent to objects when children are inserted or removed.
Note that events with QEvent::type() QEvent::ChildInserted
are posted (with {QApplication::postEvent()}) to make sure that the child's construction is completed before this function is called.
If a child is removed immediately after it is inserted, the ChildInserted
event may be suppressed, but the ChildRemoved
event will always be sent. In such cases it is possible that there will be a ChildRemoved
event without a corresponding ChildInserted
event.
If you change state based on ChildInserted
events, call QWidget::constPolish(), or do
in functions that depend on the state. One notable example is QWidget::sizeHint().
Reimplementado de QObject.
void QWorkspaceChild::doMove | ( | ) |
void QWorkspaceChild::doResize | ( | ) |
void QWorkspaceChild::drawFrame | ( | QPainter * | p | ) | [protected, virtual] |
Draws the frame using the painter p and the current frame attributes and color group. The rectangle inside the frame is not affected.
This function is virtual, but in general you do not need to reimplement it. If you do, note that the QPainter is already open and must remain open.
Reimplementado de QFrame.
void QWorkspaceChild::enterEvent | ( | QEvent * | ) | [protected, virtual] |
This event handler can be reimplemented in a subclass to receive widget enter events.
An event is sent to the widget when the mouse cursor enters the widget.
Reimplementado de QWidget.
This is the main event handler; it handles event e. You can reimplement this function in a subclass, but we recommend using one of the specialized event handlers instead.
The main event handler first passes an event through all event filters that have been installed. If none of the filters intercept the event, it calls one of the specialized event handlers.
Key press and release events are treated differently from other events. event() checks for Tab and Shift+Tab and tries to move the focus appropriately. If there is no widget to move the focus to (or the key press is not Tab or Shift+Tab), event() calls keyPressEvent().
This function returns TRUE if it is able to pass the event over to someone (i.e. someone wanted the event); otherwise returns FALSE.
Reimplementado de QWidget.
Filters events if this object has been installed as an event filter for the watched object.
In your reimplementation of this function, if you want to filter the event e, out, i.e. stop it being handled further, return TRUE; otherwise return FALSE.
Example:
class MyMainWindow : public QMainWindow { public: MyMainWindow( QWidget *parent = 0, const char *name = 0 ); protected: bool eventFilter( QObject *obj, QEvent *ev ); private: QTextEdit *textEdit; }; MyMainWindow::MyMainWindow( QWidget *parent, const char *name ) : QMainWindow( parent, name ) { textEdit = new QTextEdit( this ); setCentralWidget( textEdit ); textEdit->installEventFilter( this ); } bool MyMainWindow::eventFilter( QObject *obj, QEvent *ev ) { if ( obj == textEdit ) { if ( e->type() == QEvent::KeyPress ) { QKeyEvent *k = (QKeyEvent*)ev; qDebug( "Ate key press %d", k->key() ); return TRUE; } else { return FALSE; } } else { // pass the event on to the parent class return QMainWindow::eventFilter( obj, ev ); } }
Notice in the example above that unhandled events are passed to the base class's eventFilter() function, since the base class might have reimplemented eventFilter() for its own internal purposes.
Reimplementado de QObject.
Finds a new widget to give the keyboard focus to, as appropriate for Tab and Shift+Tab, and returns TRUE if is can find a new widget and FALSE if it can't,
If next is TRUE, this function searches "forwards", if next is FALSE, it searches "backwards".
Sometimes, you will want to reimplement this function. For example, a web browser might reimplement it to move its "current active link" forwards or backwards, and call QWidget::focusNextPrevChild() only when it reaches the last or first link on the "page".
Child widgets call focusNextPrevChild() on their parent widgets, but only the top-level widget decides where to redirect focus. By overriding this method for an object, you thus gain control of focus traversal for all child widgets.
Reimplementado de QWidget.
QWidget * QWorkspaceChild::iconWidget | ( | ) | const |
void QWorkspaceChild::internalRaise | ( | ) | [slot] |
bool QWorkspaceChild::isActive | ( | ) | const |
void QWorkspaceChild::leaveEvent | ( | QEvent * | ) | [protected, virtual] |
This event handler can be reimplemented in a subclass to receive widget leave events.
A leave event is sent to the widget when the mouse cursor leaves the widget.
Reimplementado de QWidget.
void QWorkspaceChild::moveEvent | ( | QMoveEvent * | ) | [protected, virtual] |
This event handler can be reimplemented in a subclass to receive widget move events. When the widget receives this event, it is already at the new position.
The old position is accessible through QMoveEvent::oldPos().
Reimplementado de QWidget.
void QWorkspaceChild::popupOperationMenu | ( | const QPoint & | ) | [signal] |
void QWorkspaceChild::resizeEvent | ( | QResizeEvent * | e | ) | [protected, virtual] |
Processes the resize event e.
Adjusts the frame rectangle for the resized widget. The frame rectangle is elastic, and the surrounding area is static.
The resulting frame rectangle may be null or invalid. You can use setMinimumSize() to avoid those possibilities.
Nothing is done if the frame rectangle is a null rectangle already.
Reimplementado de QFrame.
void QWorkspaceChild::setActive | ( | bool | b | ) |
void QWorkspaceChild::setCaption | ( | const QString & | caption | ) | [virtual, slot] |
Sets the window caption (title) to caption.
Reimplementado de QWidget.
void QWorkspaceChild::setStatusBar | ( | QStatusBar * | sb | ) |
void QWorkspaceChild::showMaximized | ( | ) | [virtual, slot] |
Shows the widget maximized.
Calling this function only affects top-level widgets.
On X11, this function may not work properly with certain window managers. See the Window Geometry documentation for an explanation.
Reimplementado de QWidget.
void QWorkspaceChild::showMinimized | ( | ) | [virtual, slot] |
Shows the widget minimized, as an icon.
Calling this function only affects top-level widgets.
Reimplementado de QWidget.
void QWorkspaceChild::showNormal | ( | ) | [virtual, slot] |
Restores the widget after it has been maximized or minimized.
Calling this function only affects top-level widgets.
Reimplementado de QWidget.
void QWorkspaceChild::showOperationMenu | ( | ) | [signal] |
void QWorkspaceChild::showShaded | ( | ) | [slot] |
void QWorkspaceChild::titleBarDoubleClicked | ( | ) | [slot] |
QWidget * QWorkspaceChild::windowWidget | ( | ) | const |
friend class QTitleBar [friend] |
friend class QWorkspace [friend] |