Qt 4.8
|
The QGraphicsSceneResizeEvent class provides events for widget resizing in the graphics view framework. More...
#include <qgraphicssceneevent.h>
Public Functions | |
QSizeF | newSize () const |
Returns the new size (i.e., the current size). More... | |
QSizeF | oldSize () const |
Returns the old size (i.e., the size immediately before the widget was resized). More... | |
QGraphicsSceneResizeEvent () | |
Constructs a QGraphicsSceneResizeEvent. More... | |
void | setNewSize (const QSizeF &size) |
void | setOldSize (const QSizeF &size) |
~QGraphicsSceneResizeEvent () | |
Destroys the QGraphicsSceneResizeEvent. More... | |
Public Functions inherited from QGraphicsSceneEvent | |
QGraphicsSceneEvent (Type type) | |
Constructs a generic graphics scene event of the specified type. More... | |
void | setWidget (QWidget *widget) |
Sets the widget related to this event. More... | |
QWidget * | widget () const |
Returns the widget where the event originated, or 0 if the event originates from another application. More... | |
~QGraphicsSceneEvent () | |
Destroys the event. More... | |
Public Functions inherited from QEvent | |
void | accept () |
Sets the accept flag of the event object, the equivalent of calling setAccepted(true). More... | |
void | ignore () |
Clears the accept flag parameter of the event object, the equivalent of calling setAccepted(false). More... | |
bool | isAccepted () const |
QEvent (Type type) | |
Contructs an event object of type type. More... | |
void | setAccepted (bool accepted) |
bool | spontaneous () const |
Returns true if the event originated outside the application (a system event); otherwise returns false. More... | |
Type | type () const |
Returns the event type. More... | |
virtual | ~QEvent () |
Destroys the event. More... | |
The QGraphicsSceneResizeEvent class provides events for widget resizing in the graphics view framework.
A QGraphicsWidget sends itself a QGraphicsSceneResizeEvent immediately when its geometry changes.
It's similar to QResizeEvent, but its sizes, oldSize() and newSize(), use QSizeF instead of QSize.
Definition at line 289 of file qgraphicssceneevent.h.
QGraphicsSceneResizeEvent::QGraphicsSceneResizeEvent | ( | ) |
Constructs a QGraphicsSceneResizeEvent.
Definition at line 1680 of file qgraphicssceneevent.cpp.
QGraphicsSceneResizeEvent::~QGraphicsSceneResizeEvent | ( | ) |
Destroys the QGraphicsSceneResizeEvent.
Definition at line 1688 of file qgraphicssceneevent.cpp.
QSizeF QGraphicsSceneResizeEvent::newSize | ( | ) | const |
Returns the new size (i.e., the current size).
Definition at line 1718 of file qgraphicssceneevent.cpp.
Referenced by cloneEvent(), and QGraphicsProxyWidget::resizeEvent().
QSizeF QGraphicsSceneResizeEvent::oldSize | ( | ) | const |
Returns the old size (i.e., the size immediately before the widget was resized).
Definition at line 1698 of file qgraphicssceneevent.cpp.
Referenced by cloneEvent().
void QGraphicsSceneResizeEvent::setNewSize | ( | const QSizeF & | size | ) |
Definition at line 1727 of file qgraphicssceneevent.cpp.
Referenced by cloneEvent(), and QGraphicsWidget::setGeometry().
void QGraphicsSceneResizeEvent::setOldSize | ( | const QSizeF & | size | ) |
Definition at line 1707 of file qgraphicssceneevent.cpp.
Referenced by cloneEvent(), and QGraphicsWidget::setGeometry().