Doc: corrected path used for snippets.
Added "../../../" to snippet command in gestures.qdoc Task-number: QTBUG-29101 Change-Id: Ie1d58355f43bcd939f6a178c64ab008b288af747 Reviewed-by: Jerome Pasion <jerome.pasion@digia.com>
This commit is contained in:
parent
829ada2129
commit
1fbfbf6b6e
@ -68,7 +68,7 @@
|
|||||||
required gesture type. The standard types are defined by the Qt::GestureType
|
required gesture type. The standard types are defined by the Qt::GestureType
|
||||||
enum and include many commonly used gestures.
|
enum and include many commonly used gestures.
|
||||||
|
|
||||||
\snippet examples/gestures/imagegestures/imagewidget.cpp enable gestures
|
\snippet ../../../examples/gestures/imagegestures/imagewidget.cpp enable gestures
|
||||||
|
|
||||||
In the above code, the gestures are set up in the constructor of the target object
|
In the above code, the gestures are set up in the constructor of the target object
|
||||||
itself.
|
itself.
|
||||||
@ -125,18 +125,18 @@
|
|||||||
\l{QWidget::}{event()} handler function and delegates gesture events to a
|
\l{QWidget::}{event()} handler function and delegates gesture events to a
|
||||||
specialized gestureEvent() function:
|
specialized gestureEvent() function:
|
||||||
|
|
||||||
\snippet examples/gestures/imagegestures/imagewidget.cpp event handler
|
\snippet ../../../examples/gestures/imagegestures/imagewidget.cpp event handler
|
||||||
|
|
||||||
The gesture events delivered to the target object can be examined individually
|
The gesture events delivered to the target object can be examined individually
|
||||||
and dealt with appropriately:
|
and dealt with appropriately:
|
||||||
|
|
||||||
\snippet examples/gestures/imagegestures/imagewidget.cpp gesture event handler
|
\snippet ../../../examples/gestures/imagegestures/imagewidget.cpp gesture event handler
|
||||||
|
|
||||||
Responding to a gesture is simply a matter of obtaining the QGesture object
|
Responding to a gesture is simply a matter of obtaining the QGesture object
|
||||||
delivered in the QGestureEvent sent to the target object and examining the
|
delivered in the QGestureEvent sent to the target object and examining the
|
||||||
information it contains.
|
information it contains.
|
||||||
|
|
||||||
\snippet examples/gestures/imagegestures/imagewidget.cpp swipe function
|
\snippet ../../../examples/gestures/imagegestures/imagewidget.cpp swipe function
|
||||||
|
|
||||||
Here, we examine the direction in which the user swiped the widget and modify
|
Here, we examine the direction in which the user swiped the widget and modify
|
||||||
its contents accordingly.
|
its contents accordingly.
|
||||||
|
Loading…
x
Reference in New Issue
Block a user