Event emitted when a WorkspaceNoteItem has been moved.
#include <Workspace/Presentation/workspacenoteitemevents.h>
◆ MoveNoteItemEvent()
MoveNoteItemEvent |
( |
const QUuid & |
noteItemId, |
|
|
const QPointF & |
delta, |
|
|
bool |
allowSnapToGrid = true |
|
) |
| |
|
inline |
- Parameters
-
noteItemId | The id of the note item to move. |
delta | The amount to move the specified note item relative to its current position. |
allowSnapToGrid | If true, the note item will be forced to the nearest grid point after shifting it by delta. Set this to false in situations where the exact delta must be applied, such as when undoing a move event. |
◆ getAllowSnapToGrid()
bool getAllowSnapToGrid |
( |
| ) |
const |
|
inline |
◆ getDelta()
const QPointF & getDelta |
( |
| ) |
const |
|
inline |
◆ getNoteItemId()
const QUuid & getNoteItemId |
( |
| ) |
const |
|
inline |