This file is indexed.

/usr/share/qt5/doc/qtlocation/qml-qtlocation-reviewmodel.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
<?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" />
<!-- qdeclarativereviewmodel.cpp -->
  <title>ReviewModel | 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>ReviewModel</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>
</ul>
</div>
<h1 class="title">ReviewModel</h1>
<span class="subtitle"></span>
<!-- $$$ReviewModel-brief -->
<p>Provides access to reviews of a <a href="qml-qtlocation-place.html">Place</a>. <a href="#details">More...</a></p>
<!-- @@@ReviewModel -->
<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-reviewmodel-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-reviewmodel.html#batchSize-prop">batchSize</a></b></b> : int</li>
<li class="fn"><b><b><a href="qml-qtlocation-reviewmodel.html#place-prop">place</a></b></b> : Place</li>
<li class="fn"><b><b><a href="qml-qtlocation-reviewmodel.html#totalCount-prop">totalCount</a></b></b> : int</li>
</ul>
<!-- $$$ReviewModel-description -->
<a name="details"></a>
<h2>Detailed Description</h2>
<p>The ReviewModel is a read-only model used to fetch reviews about a <a href="qml-qtlocation-place.html">Place</a>. The model incrementally fetches. The number of reviews which are fetched at a time is specified by the <a href="qml-qtlocation-reviewmodel.html#batchSize-prop">batchSize</a> property. The total number of reviews available can be accessed via the <a href="qml-qtlocation-reviewmodel.html#totalCount-prop">totalCount</a> property.</p>
<p>To use the ReviewModel we need a view and a delegate. In this snippet we see the setting up of a ListView with a ReviewModel model and a delegate.</p>
<pre class="qml">    <span class="type">ListView</span> {
        <span class="name">anchors</span>.fill: <span class="name">parent</span>

        <span class="name">model</span>: <span class="name">place</span>.<span class="name">reviewModel</span>

        <span class="name">delegate</span>: <span class="name">ReviewDelegate</span> { }
    }</pre>
<p>The model returns data for the following roles:</p>
<table class="generic">
 <thead><tr class="qt-style"><th >Role</th><th >Type</th><th >Description</th></tr></thead>
<tr valign="top" class="odd"><td >dateTime</td><td >datetime</td><td >The date and time that the review was posted.</td></tr>
<tr valign="top" class="even"><td >text</td><td >string</td><td >The review's textual description of the place. It can be either rich (HTML based) text or plain text depending on the provider.</td></tr>
<tr valign="top" class="odd"><td >language</td><td >string</td><td >The language that the review is written in.</td></tr>
<tr valign="top" class="even"><td >rating</td><td >real</td><td >The rating that the reviewer gave to the place.</td></tr>
<tr valign="top" class="odd"><td >reviewId</td><td >string</td><td >The identifier of the review.</td></tr>
<tr valign="top" class="even"><td >title</td><td >string</td><td >The title of the review.</td></tr>
<tr valign="top" class="odd"><td >supplier</td><td ><a href="qml-qtlocation-supplier.html">Supplier</a></td><td >The supplier of the review.</td></tr>
<tr valign="top" class="even"><td >user</td><td ><a href="qml-qtlocation-user.html">User</a></td><td >The user who contributed the review.</td></tr>
<tr valign="top" class="odd"><td >attribution</td><td >string</td><td >Attribution text which must be displayed when displaying the review.</td></tr>
</table>
<!-- @@@ReviewModel -->
<h2>Property Documentation</h2>
<!-- $$$batchSize -->
<div class="qmlitem"><div class="qmlproto"><table class="qmlname"><tr valign="top" class="odd"><td class="tblQmlPropNode"><p><a name="batchSize-prop"></a><span class="name">batchSize</span> : <span class="type">int</span></p></td></tr></table></div><div class="qmldoc"><p>This property holds the batch size to use when fetching more reviews.</p>
</div></div><!-- @@@batchSize -->
<br/>
<!-- $$$place -->
<div class="qmlitem"><div class="qmlproto"><table class="qmlname"><tr valign="top" class="odd"><td class="tblQmlPropNode"><p><a name="place-prop"></a><span class="name">place</span> : <span class="type"><a href="qml-qtlocation-place.html">Place</a></span></p></td></tr></table></div><div class="qmldoc"><p>This property holds the Place that the reviews are for.</p>
</div></div><!-- @@@place -->
<br/>
<!-- $$$totalCount -->
<div class="qmlitem"><div class="qmlproto"><table class="qmlname"><tr valign="top" class="odd"><td class="tblQmlPropNode"><p><a name="totalCount-prop"></a><span class="name">totalCount</span> : <span class="type">int</span></p></td></tr></table></div><div class="qmldoc"><p>This property holds the total number of reviews for the place.</p>
</div></div><!-- @@@totalCount -->
<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>