#include <qgraphicssceneevent.h>
Inheritance diagram for QGraphicsSceneEvent:


Definition at line 40 of file qgraphicssceneevent.h.
Public Member Functions | |
| QGraphicsSceneEvent (Type type) | |
| ~QGraphicsSceneEvent () | |
| QWidget * | widget () const |
| void | setWidget (QWidget *widget) |
Protected Member Functions | |
| QGraphicsSceneEvent (QGraphicsSceneEventPrivate &dd, Type type=None) | |
Protected Attributes | |
| QGraphicsSceneEventPrivate * | d_ptr |
| QGraphicsSceneEvent::QGraphicsSceneEvent | ( | Type | type | ) |
Constructs a generic graphics scene event of the specified type.
Definition at line 106 of file qgraphicssceneevent.cpp.
References d_ptr, and QGraphicsSceneEventPrivate::q_ptr.
00107 : QEvent(type), d_ptr(new QGraphicsSceneEventPrivate) 00108 { 00109 d_ptr->q_ptr = this; 00110 }
| QGraphicsSceneEvent::~QGraphicsSceneEvent | ( | ) |
Destroys the event.
Definition at line 125 of file qgraphicssceneevent.cpp.
References d_ptr.
00126 { 00127 delete d_ptr; 00128 }
| QGraphicsSceneEvent::QGraphicsSceneEvent | ( | QGraphicsSceneEventPrivate & | dd, | |
| Type | type = None | |||
| ) | [protected] |
Definition at line 116 of file qgraphicssceneevent.cpp.
References d_ptr, and QGraphicsSceneEventPrivate::q_ptr.
| QWidget * QGraphicsSceneEvent::widget | ( | ) | const |
Returns the widget where the event originated. If the event did not originate from a widget, 0 is returned.
Definition at line 136 of file qgraphicssceneevent.cpp.
References d_ptr, and QGraphicsSceneEventPrivate::widget.
Referenced by QGraphicsScenePrivate::cloneDragDropEvent(), ColorItem::mousePressEvent(), QGraphicsScenePrivate::sendHoverEvent(), setWidget(), and QGraphicsViewPrivate::storeDragDropEvent().
| void QGraphicsSceneEvent::setWidget | ( | QWidget * | widget | ) |
Sets the widget related to this event.
Definition at line 146 of file qgraphicssceneevent.cpp.
References d_ptr, widget(), and QGraphicsSceneEventPrivate::widget.
Referenced by QGraphicsScenePrivate::cloneDragDropEvent(), QGraphicsView::contextMenuEvent(), QGraphicsView::dragLeaveEvent(), QGraphicsViewPrivate::populateSceneDragDropEvent(), QGraphicsScenePrivate::sendHoverEvent(), and QGraphicsViewPrivate::storeDragDropEvent().
Here is the call graph for this function:

QGraphicsSceneEventPrivate* QGraphicsSceneEvent::d_ptr [protected] |
Definition at line 51 of file qgraphicssceneevent.h.
Referenced by QGraphicsSceneEvent(), setWidget(), widget(), and ~QGraphicsSceneEvent().
1.5.1