Qt
Internal/Contributor docs for the Qt SDK. <b>Note:</b> These are NOT official API docs; those are found <a href='https://doc.qt.io/'>here</a>.
Loading...
Searching...
No Matches
QQuickVelocityCalculator Class Reference

#include <qquickvelocitycalculator_p_p.h>

+ Collaboration diagram for QQuickVelocityCalculator:

Public Member Functions

void startMeasuring (const QPointF &point1, qint64 timestamp=0)
 
void stopMeasuring (const QPointF &m_point2, qint64 timestamp=0)
 
void reset ()
 
QPointF velocity () const
 

Detailed Description

Definition at line 24 of file qquickvelocitycalculator_p_p.h.

Member Function Documentation

◆ reset()

void QQuickVelocityCalculator::reset ( )

Definition at line 50 of file qquickvelocitycalculator.cpp.

References QElapsedTimer::invalidate().

Referenced by QQuickDrawerPrivate::handleRelease(), and QQuickDrawerPrivate::handleUngrab().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ startMeasuring()

QT_BEGIN_NAMESPACE void QQuickVelocityCalculator::startMeasuring ( const QPointF & point1,
qint64 timestamp = 0 )

Definition at line 28 of file qquickvelocitycalculator.cpp.

References QElapsedTimer::start().

Referenced by QQuickDrawerPrivate::handlePress().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ stopMeasuring()

void QQuickVelocityCalculator::stopMeasuring ( const QPointF & m_point2,
qint64 timestamp = 0 )

Definition at line 38 of file qquickvelocitycalculator.cpp.

References QElapsedTimer::elapsed(), QElapsedTimer::invalidate(), QElapsedTimer::isValid(), and qWarning.

Referenced by QQuickDrawerPrivate::handleRelease().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ velocity()

QPointF QQuickVelocityCalculator::velocity ( ) const

Definition at line 59 of file qquickvelocitycalculator.cpp.

References QElapsedTimer::elapsed(), and QElapsedTimer::isValid().

Referenced by QQuickDrawerPrivate::handleRelease().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

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