Classes used to track mouse drags. More...
Inheritance diagram for MAKLogger::DtDragComponent:
Collaboration diagram for MAKLogger::DtDragComponent:Public Member Functions | |
| DtDragComponent () | |
| CTOR. | |
| virtual | ~DtDragComponent () |
| DTOR. | |
| void | registerMousePress (const QMouseEvent &e) |
| To be called when mouse is pressed. | |
| void | registerMouseRelease (const QMouseEvent &e) |
| To be called when mouse is released. | |
| void | registerMouseMove (const QMouseEvent &e) |
| To be called when mouse is moved. | |
| QPoint | absolutePosition () const |
| Get the absolute position of the mouse. | |
| QPoint | relativePosition () const |
| Get the relative position of the mouse from the initial position. | |
| QPoint | relativeVelocity () const |
| Get the relative position of the mouse from the last update. | |
| bool | currentlyDragging () const |
| Get whether the mouse is currently dragging. | |
Protected Attributes | |
| QPoint | myFirstPosition |
| QPoint | myLastPosition |
| QPoint | myCurrentPosition |
| bool | myDownFlag |
Classes used to track mouse drags.
| QPoint MAKLogger::DtDragComponent::relativePosition | ( | ) | const |
Get the relative position of the mouse from the initial position.