Docs: add important QWheelEvent::phase() related notes
Change-Id: I4901b96b44b7c1179e678689af5962cb4570d50d Reviewed-by: Jens Bache-Wiig <jens.bache-wiig@digia.com> Reviewed-by: Gabriel de Dietrich <gabriel.dedietrich@digia.com> Reviewed-by: Lars Knoll <lars.knoll@digia.com>
This commit is contained in:
parent
6c3adb5f96
commit
7d5448d9e2
@ -709,6 +709,12 @@ QWheelEvent::QWheelEvent(const QPointF &pos, const QPointF& globalPos,
|
|||||||
Example:
|
Example:
|
||||||
|
|
||||||
\snippet code/src_gui_kernel_qevent.cpp 0
|
\snippet code/src_gui_kernel_qevent.cpp 0
|
||||||
|
|
||||||
|
\note On platforms that support scrolling \l{phase()}{phases}, the delta may be null when:
|
||||||
|
\list
|
||||||
|
\li scrolling is about to begin, but the distance did not yet change (Qt::ScrollBegin),
|
||||||
|
\li or scrolling has ended and the distance did not change anymore (Qt::ScrollEnd).
|
||||||
|
\endlist
|
||||||
*/
|
*/
|
||||||
|
|
||||||
/*!
|
/*!
|
||||||
@ -731,6 +737,12 @@ QWheelEvent::QWheelEvent(const QPointF &pos, const QPointF& globalPos,
|
|||||||
Example:
|
Example:
|
||||||
|
|
||||||
\snippet code/src_gui_kernel_qevent.cpp 0
|
\snippet code/src_gui_kernel_qevent.cpp 0
|
||||||
|
|
||||||
|
\note On platforms that support scrolling \l{phase()}{phases}, the delta may be null when:
|
||||||
|
\list
|
||||||
|
\li scrolling is about to begin, but the distance did not yet change (Qt::ScrollBegin),
|
||||||
|
\li or scrolling has ended and the distance did not change anymore (Qt::ScrollEnd).
|
||||||
|
\endlist
|
||||||
*/
|
*/
|
||||||
|
|
||||||
/*!
|
/*!
|
||||||
@ -830,6 +842,9 @@ QWheelEvent::QWheelEvent(const QPointF &pos, const QPointF& globalPos,
|
|||||||
\since 5.2
|
\since 5.2
|
||||||
|
|
||||||
Returns the scrolling phase of this wheel event.
|
Returns the scrolling phase of this wheel event.
|
||||||
|
|
||||||
|
\note The Qt::ScrollBegin and Qt::ScrollEnd phases are currently
|
||||||
|
supported only on Mac OS X.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user