This file is indexed.

/usr/share/qt5/doc/qtlocation/qml-qtlocation-mapgesturearea.html is in qtlocation5-doc-html 5.2.1-1ubuntu2.

This file is owned by root:root, with mode 0o644.

The actual contents of the file can be viewed below.

  1
  2
  3
  4
  5
  6
  7
  8
  9
 10
 11
 12
 13
 14
 15
 16
 17
 18
 19
 20
 21
 22
 23
 24
 25
 26
 27
 28
 29
 30
 31
 32
 33
 34
 35
 36
 37
 38
 39
 40
 41
 42
 43
 44
 45
 46
 47
 48
 49
 50
 51
 52
 53
 54
 55
 56
 57
 58
 59
 60
 61
 62
 63
 64
 65
 66
 67
 68
 69
 70
 71
 72
 73
 74
 75
 76
 77
 78
 79
 80
 81
 82
 83
 84
 85
 86
 87
 88
 89
 90
 91
 92
 93
 94
 95
 96
 97
 98
 99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en_US" lang="en_US">
<head>
  <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<!-- qdeclarativegeomapgesturearea.cpp -->
  <title>MapGestureArea | QtLocation 5.2</title>
  <link rel="stylesheet" type="text/css" href="style/offline.css" />
</head>
<body>
<div class="header" id="qtdocheader">
    <div class="main">
    <div class="main-rounded">
        <div class="navigationbar">
        <ul>
<li>Qt 5.2</li>
<li><a href="qtlocation-index.html">Qt Location</a></li>
<li><a href="qtlocation-qmlmodule.html">QML Types</a></li>
<li>MapGestureArea</li>
<li id="buildversion">
Qt 5.2.1 Reference Documentation</li>
    </ul>
    </div>
</div>
<div class="content">
<div class="line">
<div class="content mainContent">
<div class="toc">
<h3><a name="toc">Contents</a></h3>
<ul>
<li class="level1"><a href="#properties">Properties</a></li>
<li class="level1"><a href="#signals">Signals</a></li>
<li class="level1"><a href="#details">Detailed Description</a></li>
<li class="level2"><a href="#performance">Performance</a></li>
<li class="level2"><a href="#example-usage">Example Usage</a></li>
</ul>
</div>
<h1 class="title">MapGestureArea</h1>
<span class="subtitle"></span>
<!-- $$$MapGestureArea-brief -->
<p>The MapGestureArea type provides Map gesture interaction. <a href="#details">More...</a></p>
<!-- @@@MapGestureArea -->
<table class="alignedsummary">
<tr><td class="memItemLeft rightAlign topAlign"> Import Statement:</td><td class="memItemRight bottomAlign"> </b><tt>import QtLocation 5.0</tt></td></tr><tr><td class="memItemLeft rightAlign topAlign"> Since:</td><td class="memItemRight bottomAlign">  Qt Location 5.0</td></tr></table><ul>
<li><a href="qml-qtlocation-mapgesturearea-members.html">List of all members, including inherited members</a></li>
</ul>
<a name="properties"></a>
<h2>Properties</h2>
<ul>
<li class="fn"><b><b><a href="qml-qtlocation-mapgesturearea.html#activeGestures-prop">activeGestures</a></b></b> : enumeration</li>
<li class="fn"><b><b><a href="qml-qtlocation-mapgesturearea.html#enabled-prop">enabled</a></b></b> : bool</li>
<li class="fn"><b><b><a href="qml-qtlocation-mapgesturearea.html#flickDeceleration-prop">flickDeceleration</a></b></b> : real</li>
<li class="fn"><b><b><a href="qml-qtlocation-mapgesturearea.html#isPanActive-prop">isPanActive</a></b></b> : bool</li>
<li class="fn"><b><b><a href="qml-qtlocation-mapgesturearea.html#isPinchActive-prop">isPinchActive</a></b></b> : bool</li>
<li class="fn"><b><b><a href="qml-qtlocation-mapgesturearea.html#maximumZoomLevelChange-prop">maximumZoomLevelChange</a></b></b> : real</li>
<li class="fn"><b><b><a href="qml-qtlocation-mapgesturearea.html#panEnabled-prop">panEnabled</a></b></b> : bool</li>
<li class="fn"><b><b><a href="qml-qtlocation-mapgesturearea.html#pinchEnabled-prop">pinchEnabled</a></b></b> : bool</li>
<li class="fn"><b><b><a href="qml-qtlocation-mapgesturearea.html#rotationFactor-prop">rotationFactor</a></b></b> : real</li>
</ul>
<a name="signals"></a>
<h2>Signals</h2>
<ul>
<li class="fn"><b><b><a href="qml-qtlocation-mapgesturearea.html#flickFinished-signal">flickFinished</a></b></b>()</li>
<li class="fn"><b><b><a href="qml-qtlocation-mapgesturearea.html#flickStarted-signal">flickStarted</a></b></b>()</li>
<li class="fn"><b><b><a href="qml-qtlocation-mapgesturearea.html#panFinished-signal">panFinished</a></b></b>()</li>
<li class="fn"><b><b><a href="qml-qtlocation-mapgesturearea.html#panStarted-signal">panStarted</a></b></b>()</li>
<li class="fn"><b><b><a href="qml-qtlocation-mapgesturearea.html#pinchFinished-signal">pinchFinished</a></b></b>(PinchEvent <i>event</i>)</li>
<li class="fn"><b><b><a href="qml-qtlocation-mapgesturearea.html#pinchStarted-signal">pinchStarted</a></b></b>(PinchEvent <i>event</i>)</li>
<li class="fn"><b><b><a href="qml-qtlocation-mapgesturearea.html#pinchUpdated-signal">pinchUpdated</a></b></b>(PinchEvent <i>event</i>)</li>
</ul>
<!-- $$$MapGestureArea-description -->
<a name="details"></a>
<h2>Detailed Description</h2>
<p>MapGestureArea objects are used as part of a Map, to provide for panning, flicking and pinch-to-zoom gesture used on touch displays.</p>
<p>A MapGestureArea is automatically created with a new Map and available with the <a href="qml-qtlocation-map.html#gesture-prop">gesture</a> property. This is the only way to create a MapGestureArea, and once created this way cannot be destroyed without its parent Map.</p>
<p>The two most commonly used properties of the MapGestureArea are the <a href="qml-qtlocation-mapgesturearea.html#enabled-prop">enabled</a> and <a href="qml-qtlocation-mapgesturearea.html#activeGestures-prop">activeGestures</a> properties. Both of these must be set before a MapGestureArea will have any effect upon interaction with the Map. The <a href="qml-qtlocation-mapgesturearea.html#flickDeceleration-prop">flickDeceleration</a> property controls how quickly the map pan slows after contact is released while panning the map.</p>
<a name="performance"></a>
<h3>Performance</h3>
<p>The MapGestureArea, when enabled, must process all incoming touch events in order to track the shape and size of the &quot;pinch&quot;. The overhead added on touch events can be considered constant time.</p>
<a name="example-usage"></a>
<h3>Example Usage</h3>
<p>The following example enables the zoom and pan gestures on the map, but not flicking. So the map scrolling will halt immediately on releasing the mouse button / touch.</p>
<pre class="cpp">Map {
    gesture<span class="operator">.</span>enabled: <span class="keyword">true</span>
    gesture<span class="operator">.</span>activeGestures: MapGestureArea<span class="operator">.</span>ZoomGesture <span class="operator">|</span> MapGestureArea<span class="operator">.</span>PanGesture
}</pre>
<!-- @@@MapGestureArea -->
<h2>Property Documentation</h2>
<!-- $$$activeGestures -->
<div class="qmlitem"><div class="qmlproto"><table class="qmlname"><tr valign="top" class="odd"><td class="tblQmlPropNode"><p><a name="activeGestures-prop"></a><span class="name">activeGestures</span> : <span class="type">enumeration</span></p></td></tr></table></div><div class="qmldoc"><p>This property holds the gestures that will be active. By default the zoom, pan and flick gestures are enabled.</p>
<ul>
<li><a href="qml-qtlocation-mapgesturearea.html">MapGestureArea</a>.NoGesture - Don't support any additional gestures (value: 0x0000).</li>
<li><a href="qml-qtlocation-mapgesturearea.html">MapGestureArea</a>.ZoomGesture - Support the map zoom gesture (value: 0x0001).</li>
<li><a href="qml-qtlocation-mapgesturearea.html">MapGestureArea</a>.RotationGesture - Support the map rotation gesture (value: 0x0002).</li>
<li><a href="qml-qtlocation-mapgesturearea.html">MapGestureArea</a>.TiltGesture - Support the map tilt gesture (value: 0x0004).</li>
<li><a href="qml-qtlocation-mapgesturearea.html">MapGestureArea</a>.PanGesture - Support the map pan gesture (value: 0x0008).</li>
<li><a href="qml-qtlocation-mapgesturearea.html">MapGestureArea</a>.FlickGesture - Support the map flick gesture (value: 0x0010).</li>
</ul>
<p>For the extremist, one may OR flag the RotationGesture or TiltGesture but these come with absolutely no warranty or guarantees at the moment (may be removed, changed, moved around)</p>
<p><b>Note: </b>For the time being, only <a href="qml-qtlocation-mapgesturearea.html">MapGestureArea</a>.ZoomGesture is supported.</p></div></div><!-- @@@activeGestures -->
<br/>
<!-- $$$enabled -->
<div class="qmlitem"><div class="qmlproto"><table class="qmlname"><tr valign="top" class="odd"><td class="tblQmlPropNode"><p><a name="enabled-prop"></a><span class="name">enabled</span> : <span class="type">bool</span></p></td></tr></table></div><div class="qmldoc"><p>This property holds whether the gestures are enabled. Note: disabling gestures during an active gesture does not have effect on the potentially active current gesture.</p>
</div></div><!-- @@@enabled -->
<br/>
<!-- $$$flickDeceleration -->
<div class="qmlitem"><div class="qmlproto"><table class="qmlname"><tr valign="top" class="odd"><td class="tblQmlPropNode"><p><a name="flickDeceleration-prop"></a><span class="name">flickDeceleration</span> : <span class="type">real</span></p></td></tr></table></div><div class="qmldoc"><p>This property holds the rate at which a flick will decelerate.</p>
<p>The default value is 2500.</p>
</div></div><!-- @@@flickDeceleration -->
<br/>
<!-- $$$isPanActive -->
<div class="qmlitem"><div class="qmlproto"><table class="qmlname"><tr valign="top" class="odd"><td class="tblQmlPropNode"><p><a name="isPanActive-prop"></a><span class="name">isPanActive</span> : <span class="type">bool</span></p></td></tr></table></div><div class="qmldoc"><p>This read-only property holds whether any pan gesture (panning or flicking) is active.</p>
</div></div><!-- @@@isPanActive -->
<br/>
<!-- $$$isPinchActive -->
<div class="qmlitem"><div class="qmlproto"><table class="qmlname"><tr valign="top" class="odd"><td class="tblQmlPropNode"><p><a name="isPinchActive-prop"></a><span class="name">isPinchActive</span> : <span class="type">bool</span></p></td></tr></table></div><div class="qmldoc"><p>This read-only property holds whether any pinch gesture is active.</p>
</div></div><!-- @@@isPinchActive -->
<br/>
<!-- $$$maximumZoomLevelChange -->
<div class="qmlitem"><div class="qmlproto"><table class="qmlname"><tr valign="top" class="odd"><td class="tblQmlPropNode"><p><a name="maximumZoomLevelChange-prop"></a><span class="name">maximumZoomLevelChange</span> : <span class="type">real</span></p></td></tr></table></div><div class="qmldoc"><p>This property holds the maximum zoom level change per pinch, essentially meant to be used for setting the zoom sensitivity.</p>
<p>It is an indicative measure calculated from the dimensions of the map area, roughly corresponding how much zoom level could change with maximum pinch zoom. Default value is 2.0, maximum value is 10.0</p>
</div></div><!-- @@@maximumZoomLevelChange -->
<br/>
<!-- $$$panEnabled -->
<div class="qmlitem"><div class="qmlproto"><table class="qmlname"><tr valign="top" class="odd"><td class="tblQmlPropNode"><p><a name="panEnabled-prop"></a><span class="name">panEnabled</span> : <span class="type">bool</span></p></td></tr></table></div><div class="qmldoc"><p>This property holds whether the pan gestures are enabled. Note: disabling gestures during an active gesture does not have effect on the potentially active current gesture.</p>
</div></div><!-- @@@panEnabled -->
<br/>
<!-- $$$pinchEnabled -->
<div class="qmlitem"><div class="qmlproto"><table class="qmlname"><tr valign="top" class="odd"><td class="tblQmlPropNode"><p><a name="pinchEnabled-prop"></a><span class="name">pinchEnabled</span> : <span class="type">bool</span></p></td></tr></table></div><div class="qmldoc"><p>This property holds whether the pinch gestures are enabled. Note: disabling gestures during an active gesture does not have effect on the potentially active current gesture.</p>
</div></div><!-- @@@pinchEnabled -->
<br/>
<!-- $$$rotationFactor -->
<div class="qmlitem"><div class="qmlproto"><table class="qmlname"><tr valign="top" class="odd"><td class="tblQmlPropNode"><p><a name="rotationFactor-prop"></a><span class="name">rotationFactor</span> : <span class="type">real</span></p></td></tr></table></div><div class="qmldoc"><p>This property holds the rotation factor for zoom, essentially meant to be used for setting the rotation sensitivity.</p>
<p>It is an indicative measure; the default value 1.0 means the map roughly follows the fingers, whereas 2.0 means rotating twice as fast. Maximum value is 5.0&#x2e;</p>
</div></div><!-- @@@rotationFactor -->
<br/>
<h2>Signal Documentation</h2>
<!-- $$$flickFinished -->
<div class="qmlitem"><div class="qmlproto"><table class="qmlname"><tr valign="top" class="odd"><td class="tblQmlFuncNode"><p><a name="flickFinished-signal"></a><span class="name">flickFinished</span>()</p></td></tr></table></div><div class="qmldoc"><p>This handler is called when the view stops moving due to a flick. The order of panFinished() and flickFinished() is not specified.</p>
</div></div><!-- @@@flickFinished -->
<br/>
<!-- $$$flickStarted -->
<div class="qmlitem"><div class="qmlproto"><table class="qmlname"><tr valign="top" class="odd"><td class="tblQmlFuncNode"><p><a name="flickStarted-signal"></a><span class="name">flickStarted</span>()</p></td></tr></table></div><div class="qmldoc"><p>This handler is called when the view is flicked. A flick starts from the point that the mouse or touch is released, while still in motion.</p>
</div></div><!-- @@@flickStarted -->
<br/>
<!-- $$$panFinished -->
<div class="qmlitem"><div class="qmlproto"><table class="qmlname"><tr valign="top" class="odd"><td class="tblQmlFuncNode"><p><a name="panFinished-signal"></a><span class="name">panFinished</span>()</p></td></tr></table></div><div class="qmldoc"><p>This handler is called when the view stops moving due to user interaction. If a flick was generated, this handler will be triggered once the flick stops. If a flick was not generated, the handler will be triggered when the user stops dragging - that is a mouse or touch release.</p>
</div></div><!-- @@@panFinished -->
<br/>
<!-- $$$panStarted -->
<div class="qmlitem"><div class="qmlproto"><table class="qmlname"><tr valign="top" class="odd"><td class="tblQmlFuncNode"><p><a name="panStarted-signal"></a><span class="name">panStarted</span>()</p></td></tr></table></div><div class="qmldoc"><p>This handler is called when the view begins moving due to user interaction. Typically this means that the user is dragging a finger - or a mouse with one of more mouse buttons pressed - on the map.</p>
</div></div><!-- @@@panStarted -->
<br/>
<!-- $$$pinchFinished -->
<div class="qmlitem"><div class="qmlproto"><table class="qmlname"><tr valign="top" class="odd"><td class="tblQmlFuncNode"><p><a name="pinchFinished-signal"></a><span class="name">pinchFinished</span>(<span class="type">PinchEvent</span><i> event</i>)</p></td></tr></table></div><div class="qmldoc"><p>The end of a pinch gesture is signaled by this event.</p>
<p><b>See also </b><a href="qml-qtlocation-mapgesturearea.html#pinchStarted-signal">pinchStarted</a> and <a href="qml-qtlocation-mapgesturearea.html#pinchUpdated-signal">pinchUpdated</a>.</p>
</div></div><!-- @@@pinchFinished -->
<br/>
<!-- $$$pinchStarted -->
<div class="qmlitem"><div class="qmlproto"><table class="qmlname"><tr valign="top" class="odd"><td class="tblQmlFuncNode"><p><a name="pinchStarted-signal"></a><span class="name">pinchStarted</span>(<span class="type">PinchEvent</span><i> event</i>)</p></td></tr></table></div><div class="qmldoc"><p>Raised when a pinch gesture is started.</p>
<p><b>See also </b><a href="qml-qtlocation-mapgesturearea.html#pinchUpdated-signal">pinchUpdated</a> and <a href="qml-qtlocation-mapgesturearea.html#pinchFinished-signal">pinchFinished</a>.</p>
</div></div><!-- @@@pinchStarted -->
<br/>
<!-- $$$pinchUpdated -->
<div class="qmlitem"><div class="qmlproto"><table class="qmlname"><tr valign="top" class="odd"><td class="tblQmlFuncNode"><p><a name="pinchUpdated-signal"></a><span class="name">pinchUpdated</span>(<span class="type">PinchEvent</span><i> event</i>)</p></td></tr></table></div><div class="qmldoc"><p>Once a pinch has begun this event gets raised as the user moves her fingers across the map.</p>
<p><b>See also </b><a href="qml-qtlocation-mapgesturearea.html#pinchStarted-signal">pinchStarted</a> and <a href="qml-qtlocation-mapgesturearea.html#pinchFinished-signal">pinchFinished</a>.</p>
</div></div><!-- @@@pinchUpdated -->
<br/>
        </div>
       </div>
   </div>
   </div>
</div>
<div class="footer">
   <p>
   <acronym title="Copyright">&copy;</acronym> 2013 Digia Plc and/or its
   subsidiaries. Documentation contributions included herein are the copyrights of
   their respective owners.<br>    The documentation provided herein is licensed under the terms of the    <a href="http://www.gnu.org/licenses/fdl.html">GNU Free Documentation    License version 1.3</a> as published by the Free Software Foundation.<br>    Digia, Qt and their respective logos are trademarks of Digia Plc     in Finland and/or other countries worldwide. All other trademarks are property
   of their respective owners. </p>
</div>
</body>
</html>