|
Schim
|
The base class of all scene operations. More...
#include <operations.h>
Signals | |
| void | finished () |
| Emitted when the operation has finished, either successfully or not. | |
Public Member Functions | |
| SceneOperation (SheetScene *scene) | |
| Construct a scene operation in the specified scene. | |
| virtual void | mousePressEvent (QGraphicsSceneMouseEvent *event) |
| Process a mousePressEvent. The base implementation does nothing. | |
| virtual void | mouseMoveEvent (QGraphicsSceneMouseEvent *event) |
| Process a mouseMoveEvent. The base implementation does nothing. | |
| virtual void | mouseReleaseEvent (QGraphicsSceneMouseEvent *event) |
| Process a mouseReleaseEvent. The base implementation does nothing. | |
| virtual void | keyPressEvent (QKeyEvent *event) |
| Process a keyPressEvent. The base implementation does nothing. | |
| virtual void | cancel () |
| Cancel the operation. More... | |
The base class of all scene operations.
An operation is any multi-step process that relies on mouse/keyboard input. An example of an operation is inserting a line.
Each operation is associated with a scene.
|
virtual |
Cancel the operation.
This will delete any dangling objects and remove them from the scene. The finished signal will be emitted.
1.8.13