|
Schim
|
The base class for object handles. More...
#include <gobject.h>
Public Member Functions | |
| GObjectHandle (GObject *obj) | |
| Construct a handle associated with the specified GObject. More... | |
| SheetScene * | scene () |
Protected Member Functions | |
| QVariant | itemChange (QGraphicsItem::GraphicsItemChange change, const QVariant &value) override |
| void | mousePressEvent (QGraphicsSceneMouseEvent *event) override |
| Initiate dragging when the left button is pressed. More... | |
| void | mouseMoveEvent (QGraphicsSceneMouseEvent *event) override |
| Move the handle when the mouse is dragged over it with the left button down. More... | |
The base class for object handles.
A handle is an item that allows the user to manipulate the object in some way, e.g. to resize, rotate, etc.
|
explicit |
Construct a handle associated with the specified GObject.
obj is assigned as the parent of the handle in the scene. The handle is configured to send geometry changes.
|
overrideprotected |
Used to notify obj of any changes to this handle
|
overrideprotected |
Move the handle when the mouse is dragged over it with the left button down.
This method is used because the selection flag is disabled due to practical reasons. The handle is moved using moveBy, whereby snap-to-grid is applied if appropriate. The event is accepted.
|
overrideprotected |
Initiate dragging when the left button is pressed.
The handle accepts the event, which means that it will not be further processed by the scene.
| SheetScene* GObjectHandle::scene | ( | ) |
Return the scene cast to a SheetScene*.
1.8.13