20 #ifndef PROJECTORDRAGCORNER_HPP 21 #define PROJECTORDRAGCORNER_HPP 67 #endif // PROJECTORDRAGCORNER_HPP void moveCompleted(QPoint loc)
Sent when a "move" action of this drag corner is finished.
void mouseReleaseEvent(QMouseEvent *event)
Called when a mouse release happens; consider drop after drag.
Definition: ProjectorDragCorner.cpp:83
QPoint dragStartPos
Where this drag was initiated.
Definition: ProjectorDragCorner.hpp:58
A draggable widget for managing where the projector corners lie in the video frame.
Definition: ProjectorDragCorner.hpp:29
int cornerIndex
The (extrinsic) index of this corner in [UL,BL,BR,UL].
Definition: ProjectorDragCorner.hpp:34
void paintEvent(QPaintEvent *event)
Paint this drag corner.
Definition: ProjectorDragCorner.cpp:35
void mousePressEvent(QMouseEvent *event)
Called when a mouse press happens; "select" and consider drag.
Definition: ProjectorDragCorner.cpp:56
ProjectorDragCorner(QWidget *parent=0)
Default constructor.
Definition: ProjectorDragCorner.cpp:26
bool dragging
Whether this corner is being dragged.
Definition: ProjectorDragCorner.hpp:62
void mouseMoveEvent(QMouseEvent *event)
Called when a mouse move happens; consider drag if selected and moved.
Definition: ProjectorDragCorner.cpp:71
bool selected
Whether this corner is selected.
Definition: ProjectorDragCorner.hpp:60
int radius
Display/click radius of this widget.
Definition: ProjectorDragCorner.hpp:64