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>.
|
#include <qquickvelocitycalculator_p_p.h>
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 |
Definition at line 24 of file qquickvelocitycalculator_p_p.h.
void QQuickVelocityCalculator::reset | ( | ) |
Definition at line 50 of file qquickvelocitycalculator.cpp.
References QElapsedTimer::invalidate().
Referenced by QQuickDrawerPrivate::handleRelease(), and QQuickDrawerPrivate::handleUngrab().
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().
Definition at line 38 of file qquickvelocitycalculator.cpp.
References QElapsedTimer::elapsed(), QElapsedTimer::invalidate(), QElapsedTimer::isValid(), and qWarning.
Referenced by QQuickDrawerPrivate::handleRelease().
QPointF QQuickVelocityCalculator::velocity | ( | ) | const |
Definition at line 59 of file qquickvelocitycalculator.cpp.
References QElapsedTimer::elapsed(), and QElapsedTimer::isValid().
Referenced by QQuickDrawerPrivate::handleRelease().