Doc: Corrected display qml code in photosurface.qdoc

Change-Id: Ic4e0dcc6bd91921cfea68e0cfe805e8369f58618
Task-number: QTBUG-49810
Reviewed-by: Martin Smith <martin.smith@theqtcompany.com>
This commit is contained in:
Nico Vertriest 2016-01-25 13:15:50 +01:00
parent 9d58412049
commit 16eaec15e8
1 changed files with 4 additions and 2 deletions

View File

@ -116,6 +116,7 @@
\quotefromfile demos/photosurface/photosurface.qml
\skipto Rectangle
\printuntil Component.onCompleted
\printuntil }
\section1 Handling Pinch Gestures
@ -123,6 +124,7 @@
We use a PinchArea that contains a MouseArea in the photo frames to handle
dragging, rotation and pinch zooming of the frame:
\skipto PinchArea
\printuntil onPinchStarted
We use the \c pinch group property to control how the photo frames react to
@ -137,13 +139,13 @@
frame is controlled in the \c onEntered signal handler to highlight the
selected image:
\skipto MouseArea
\printuntil onEntered
To enable you to test the example on the desktop, we use the MouseArea's
\c onWheel signal handler to simulate pinch gestures by using a mouse:
\printuntil photoFrame.y
\printuntil }
\printuntil photoFrame.scale
\printuntil }
\printuntil }