path: root/examples/datavisualization/custominput/doc/src/custominput.qdoc
diff options
Diffstat (limited to 'examples/datavisualization/custominput/doc/src/custominput.qdoc')
1 files changed, 6 insertions, 6 deletions
diff --git a/examples/datavisualization/custominput/doc/src/custominput.qdoc b/examples/datavisualization/custominput/doc/src/custominput.qdoc
index 88c53b4d..59d3c090 100644
--- a/examples/datavisualization/custominput/doc/src/custominput.qdoc
+++ b/examples/datavisualization/custominput/doc/src/custominput.qdoc
@@ -34,19 +34,19 @@
The default input handling mechanism is replaced by setting the active input handler of \l Q3DScatter
to \c CustomInputHandler that implements the custom behavior.
- \snippet ../examples/custominput/scatterdatamodifier.cpp 0
+ \snippet custominput/scatterdatamodifier.cpp 0
\section1 Implementing custom selection handling
The on mouseover selection handling is implemented in the \c CustomInputHandler that captures the mouse events.
It then stores the last known coordinates to the \l QAbstract3DInputHandler::inputPosition property.
- \snippet ../examples/custominput/custominputhandler.cpp 0
+ \snippet custominput/custominputhandler.cpp 0
As the selection is one shot, and is cleared each time a 3D frame is rendered, a timer is setup to retrigger selection so that the selection moves to the item
currently under the mouse cursor as the camera animates around the graph even when the mouse cursor is not moving.
- \snippet ../examples/custominput/scatterdatamodifier.cpp 1
+ \snippet custominput/scatterdatamodifier.cpp 1
\section1 Implementing custom zoom handling
@@ -54,17 +54,17 @@
between 10% and 500%. This range is then divided to four subranges where \c angleDelta is scaled to different amount of zoom change
based on the current subrange.
- \snippet ../examples/custominput/custominputhandler.cpp 1
+ \snippet custominput/custominputhandler.cpp 1
\section1 Implementing custom camera handling
The camera is animated to constantly rotate around the graph with two animations. The rotation around the graph is done with
a simple QPropertyAnimation that just increments during 20 seconds from 0 degrees to 360 degrees and sets the \l Q3DCamera::xRotation property.
- \snippet ../examples/custominput/scatterdatamodifier.cpp 2
+ \snippet custominput/scatterdatamodifier.cpp 2
The camera movement up and down is implemented with a QSequentialAnimationGroup that varies the \l Q3DCamera::yRotation property of the camera
from 5 degrees to 45 degrees and back with in and out easing.
- \snippet ../examples/custominput/scatterdatamodifier.cpp 3
+ \snippet custominput/scatterdatamodifier.cpp 3