This file is indexed.

/usr/share/qt5/doc/qtlocation/qml-qtlocation-mappinchevent.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
<?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>MapPinchEvent | 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>MapPinchEvent</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="#details">Detailed Description</a></li>
<li class="level2"><a href="#example-usage">Example Usage</a></li>
</ul>
</div>
<h1 class="title">MapPinchEvent</h1>
<span class="subtitle"></span>
<!-- $$$MapPinchEvent-brief -->
<p>MapPinchEvent type provides basic information about pinch event. <a href="#details">More...</a></p>
<!-- @@@MapPinchEvent -->
<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-mappinchevent-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-mappinchevent.html#accepted-prop">accepted</a></b></b> : bool</li>
<li class="fn"><b><b><a href="qml-qtlocation-mappinchevent.html#angle-prop">angle</a></b></b> : real</li>
<li class="fn"><b><b><a href="qml-qtlocation-mappinchevent.html#center-prop">center</a></b></b> : QPoint</li>
<li class="fn"><b><b><a href="qml-qtlocation-mappinchevent.html#point1-prop">point1</a></b></b> : QPoint</li>
<li class="fn"><b><b><a href="qml-qtlocation-mappinchevent.html#point2-prop">point2</a></b></b> : QPoint</li>
<li class="fn"><b><b><a href="qml-qtlocation-mappinchevent.html#pointCount-prop">pointCount</a></b></b> : int</li>
</ul>
<!-- $$$MapPinchEvent-description -->
<a name="details"></a>
<h2>Detailed Description</h2>
<p>MapPinchEvent type provides basic information about pinch event. They are present in handlers of MapPinch (for example pinchStarted/pinchUpdated). Events are only guaranteed to be valid for the duration of the handler.</p>
<p>Except for the <a href="qml-qtlocation-mappinchevent.html#accepted-prop">accepted</a> property, all properties are read-only.</p>
<a name="example-usage"></a>
<h3>Example Usage</h3>
<p>The following example enables the pinch gesture on a map and reacts to the finished event.</p>
<pre class="cpp">Map {
    id: map
    gesture<span class="operator">.</span>enabled: <span class="keyword">true</span>
    gesture<span class="operator">.</span>onPinchFinished:{
        var coordinate1 <span class="operator">=</span> map<span class="operator">.</span>toCoordinate(gesture<span class="operator">.</span>point1)
        var coordinate2 <span class="operator">=</span> map<span class="operator">.</span>toCoordinate(gesture<span class="operator">.</span>point2)
        console<span class="operator">.</span>log(<span class="string">&quot;Pinch started at:&quot;</span>)
        console<span class="operator">.</span>log(<span class="string">&quot;        Points (&quot;</span> <span class="operator">+</span> gesture<span class="operator">.</span>point1<span class="operator">.</span>x <span class="operator">+</span> <span class="string">&quot;, &quot;</span> <span class="operator">+</span> gesture<span class="operator">.</span>point1<span class="operator">.</span>y <span class="operator">+</span> <span class="string">&quot;) - (&quot;</span> <span class="operator">+</span> gesture<span class="operator">.</span>point2<span class="operator">.</span>x <span class="operator">+</span> <span class="string">&quot;, &quot;</span> <span class="operator">+</span> gesture<span class="operator">.</span>point2<span class="operator">.</span>y <span class="operator">+</span> <span class="string">&quot;)&quot;</span>)
        console<span class="operator">.</span>log(<span class="string">&quot;   Coordinates (&quot;</span> <span class="operator">+</span> coordinate1<span class="operator">.</span>latitude <span class="operator">+</span> <span class="string">&quot;, &quot;</span> <span class="operator">+</span> coordinate1<span class="operator">.</span>longitude <span class="operator">+</span> <span class="string">&quot;) - (&quot;</span> <span class="operator">+</span> coordinate2<span class="operator">.</span>latitude <span class="operator">+</span> <span class="string">&quot;, &quot;</span> <span class="operator">+</span> coordinate2<span class="operator">.</span>longitude <span class="operator">+</span> <span class="string">&quot;)&quot;</span>)
    }
}</pre>
<!-- @@@MapPinchEvent -->
<h2>Property Documentation</h2>
<!-- $$$accepted -->
<div class="qmlitem"><div class="qmlproto"><table class="qmlname"><tr valign="top" class="odd"><td class="tblQmlPropNode"><p><a name="accepted-prop"></a><span class="name">accepted</span> : <span class="type">bool</span></p></td></tr></table></div><div class="qmldoc"><p>Setting this property to false in the <tt>MapPinch::onPinchStarted</tt> handler will result in no further pinch events being generated, and the gesture ignored.</p>
</div></div><!-- @@@accepted -->
<br/>
<!-- $$$angle -->
<div class="qmlitem"><div class="qmlproto"><table class="qmlname"><tr valign="top" class="odd"><td class="tblQmlPropNode"><p><a name="angle-prop"></a><span class="name">angle</span> : <span class="type">real</span></p></td></tr></table></div><div class="qmldoc"><p>This read-only property holds the current angle between the two points in the range -180 to 180. Positive values for the angles mean counter-clockwise while negative values mean the clockwise direction. Zero degrees is at the 3 o'clock position.</p>
</div></div><!-- @@@angle -->
<br/>
<!-- $$$center -->
<div class="qmlitem"><div class="qmlproto"><table class="qmlname"><tr valign="top" class="odd"><td class="tblQmlPropNode"><p><a name="center-prop"></a><span class="name">center</span> : <span class="type">QPoint</span></p></td></tr></table></div><div class="qmldoc"><p>This read-only property holds the current center point.</p>
</div></div><!-- @@@center -->
<br/>
<!-- $$$point1 -->
<div class="qmlitem"><div class="qmlproto"><table class="qmlname"><tr valign="top" class="odd"><td class="tblQmlPropNode"><p><a name="point1-prop"></a><span class="name">point1</span> : <span class="type">QPoint</span></p></td></tr></table></div><div class="qmldoc"><p>These read-only properties hold the actual touch points generating the pinch. The points are not in any particular order.</p>
</div></div><!-- @@@point1 -->
<br/>
<!-- $$$point2 -->
<div class="qmlitem"><div class="qmlproto"><table class="qmlname"><tr valign="top" class="odd"><td class="tblQmlPropNode"><p><a name="point2-prop"></a><span class="name">point2</span> : <span class="type">QPoint</span></p></td></tr></table></div><div class="qmldoc"><p>These read-only properties hold the actual touch points generating the pinch. The points are not in any particular order.</p>
</div></div><!-- @@@point2 -->
<br/>
<!-- $$$pointCount -->
<div class="qmlitem"><div class="qmlproto"><table class="qmlname"><tr valign="top" class="odd"><td class="tblQmlPropNode"><p><a name="pointCount-prop"></a><span class="name">pointCount</span> : <span class="type">int</span></p></td></tr></table></div><div class="qmldoc"><p>This read-only property holds the number of points currently touched. The MapPinch will not react until two touch points have initiated a gesture, but will remain active until all touch points have been released.</p>
</div></div><!-- @@@pointCount -->
<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>