Public Member Functions | Protected Attributes
MAKLogger::DtDragComponent Class Reference

Classes used to track mouse drags. More...

+ Inheritance diagram for MAKLogger::DtDragComponent:
+ Collaboration diagram for MAKLogger::DtDragComponent:

List of all members.

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

Detailed Description

Classes used to track mouse drags.


Member Function Documentation

QPoint MAKLogger::DtDragComponent::relativePosition ( ) const

Get the relative position of the mouse from the initial position.


The documentation for this class was generated from the following file:

Document ID: Generated on Tue Oct 11 19:41:03 EDT 2011 from SVN revision 107422
Copyright © 2005-2011 VT MÄK Inc. All Rights Reserved (www.mak.com)