/usr/share/qt5/doc/qtlocation/qml-qtlocation-reviewmodel.html is in qtlocation5-doc-html 5.5.1-3ubuntu1.
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 | <?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html>
<html lang="en">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<!-- qdeclarativereviewmodel.cpp -->
<title>ReviewModel QML Type | Qt Location 5.5</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.5</li>
<li><a href="qtlocation-index.html">Qt Location</a></li>
<li><a href="qtlocation-qmlmodule.html">QML Types</a></li>
<li>ReviewModel QML Type</li>
<li id="buildversion">Qt 5.5.1 Reference Documentation</li>
</ul>
</div>
</div>
<div class="content">
<div class="line">
<div class="content mainContent">
<div class="sidebar">
<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>
<div class="sidebar-content" id="sidebar-content"></div></div>
<h1 class="title">ReviewModel QML Type</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 -->
<div class="table"><table class="alignedsummary">
<tr><td class="memItemLeft rightAlign topAlign"> Import Statement:</td><td class="memItemRight bottomAlign"> import QtLocation 5.3</td></tr><tr><td class="memItemLeft rightAlign topAlign"> Since:</td><td class="memItemRight bottomAlign"> Qt Location 5.5</td></tr></table></div><ul>
<li><a href="qml-qtlocation-reviewmodel-members.html">List of all members, including inherited members</a></li>
</ul>
<a name="properties"></a>
<h2 id="properties">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 id="details">Detailed Description</h2>
</p>
<p>The <a href="qml-qtlocation-reviewmodel.html">ReviewModel</a> 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 <a href="qml-qtlocation-reviewmodel.html">ReviewModel</a> we need a view and a delegate. In this snippet we see the setting up of a ListView with a <a href="qml-qtlocation-reviewmodel.html">ReviewModel</a> model and a delegate.</p>
<pre class="qml"><span class="type">ListView</span> {
<span class="name">id</span>:<span class="name">view</span>
property <span class="type"><a href="qml-qtlocation-place.html">Place</a></span> <span class="name">place</span>
signal <span class="type">showReview</span>(variant review)
<span class="name">width</span>: <span class="name">parent</span>.<span class="name">width</span>
<span class="name">height</span>: <span class="name">parent</span>.<span class="name">height</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> {
<span class="name">onShowReview</span>: <span class="name">view</span>.<span class="name">showReview</span>(<span class="name">model</span>)
}
}</pre>
<p>The model returns data for the following roles:</p>
<div class="table"><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></div>
<!-- @@@ReviewModel -->
<h2>Property Documentation</h2>
<!-- $$$batchSize -->
<div class="qmlitem"><div class="qmlproto"><div class="table"><table class="qmlname"><tr valign="top" class="odd" id="batchSize-prop"><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><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"><div class="table"><table class="qmlname"><tr valign="top" class="odd" id="place-prop"><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><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"><div class="table"><table class="qmlname"><tr valign="top" class="odd" id="totalCount-prop"><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><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">©</acronym> 2015 The Qt Company Ltd.
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> Qt and respective logos are trademarks of The Qt Company Ltd. in Finland and/or other countries worldwide. All other trademarks are property
of their respective owners. </p>
</div>
</body>
</html>
|