This file is indexed.

/usr/share/qt5/doc/qtquick/qtquick-text-example.html is in qtdeclarative5-doc-html 5.2.1-3ubuntu15.

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
<?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" />
<!-- text.qdoc -->
  <title>Qt Quick Examples - Text | QtQuick 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="qtquick-index.html">Qt Quick</a></li>
<li>Qt Quick Examples - Text</li>
<li id="buildversion">
Qt 5.2.1 Reference Documentation</li>
    </ul>
    </div>
</div>
<div class="content">
<div class="line">
<div class="content mainContent">
<h1 class="title">Qt Quick Examples - Text</h1>
<span class="subtitle"></span>
<!-- $$$text-description -->
<div class="descr"> <a name="details"></a>
<p>This is a collection of QML examples relating to text<p class="centerAlign"><img src="images/qml-text-example.png" alt="" /></p><p>This is a collection of small QML examples relating to text. Each example is a small QML file, usually containing or emphasizing a particular type or feature. You can run and observe the behavior of each example.</p>
<p>'Hello' shows how to change and animate the letter spacing of a Text type. It uses a sequential animation to first animate the font.letterSpacing property from 0 to 50 over 3 seconds and then move the text to a random position on screen:</p>
<pre class="qml">            SequentialAnimation on <span class="name">font</span>.letterSpacing {
                <span class="name">loops</span>: <span class="name">Animation</span>.<span class="name">Infinite</span>;
                <span class="type"><a href="qml-qtquick-numberanimation.html">NumberAnimation</a></span> { <span class="name">from</span>: <span class="number">0</span>; <span class="name">to</span>: <span class="number">50</span>; <span class="name">easing</span>.type: <span class="name">Easing</span>.<span class="name">InQuad</span>; <span class="name">duration</span>: <span class="number">3000</span> }
                <span class="type"><a href="qml-qtquick-scriptaction.html">ScriptAction</a></span> {
                    <span class="name">script</span>: {
                        <span class="name">container</span>.<span class="name">y</span> <span class="operator">=</span> (<span class="name">screen</span>.<span class="name">height</span> <span class="operator">/</span> <span class="number">4</span>) <span class="operator">+</span> (<span class="name">Math</span>.<span class="name">random</span>() <span class="operator">*</span> <span class="name">screen</span>.<span class="name">height</span> <span class="operator">/</span> <span class="number">2</span>)
                        <span class="name">container</span>.<span class="name">x</span> <span class="operator">=</span> (<span class="name">screen</span>.<span class="name">width</span> <span class="operator">/</span> <span class="number">4</span>) <span class="operator">+</span> (<span class="name">Math</span>.<span class="name">random</span>() <span class="operator">*</span> <span class="name">screen</span>.<span class="name">width</span> <span class="operator">/</span> <span class="number">2</span>)
                    }
                }
            }</pre>
<p>'Fonts' shows different ways of using fonts with the Text type. Simply by name, using the font.family property directly:</p>
<pre class="qml">            <span class="name">font</span>.family: <span class="string">&quot;Times&quot;</span></pre>
<p>or using a <a href="qml-qtquick-fontloader.html">FontLoader</a> type:</p>
<pre class="qml">    <span class="type"><a href="qml-qtquick-fontloader.html">FontLoader</a></span> { <span class="name">id</span>: <span class="name">fixedFont</span>; <span class="name">name</span>: <span class="string">&quot;Courier&quot;</span> }</pre>
<p>or using a <a href="qml-qtquick-fontloader.html">FontLoader</a> and specifying a local font file:</p>
<pre class="qml">    <span class="type"><a href="qml-qtquick-fontloader.html">FontLoader</a></span> { <span class="name">id</span>: <span class="name">localFont</span>; <span class="name">source</span>: <span class="string">&quot;content/fonts/tarzeau_ocr_a.ttf&quot;</span> }</pre>
<p>or finally using a <a href="qml-qtquick-fontloader.html">FontLoader</a> and specifying a remote font file:</p>
<pre class="qml">    <span class="type"><a href="qml-qtquick-fontloader.html">FontLoader</a></span> { <span class="name">id</span>: <span class="name">webFont</span>; <span class="name">source</span>: <span class="string">&quot;http://www.princexml.com/fonts/steffmann/Starburst.ttf&quot;</span> }</pre>
<p>'Available Fonts' shows how to use the QML Qt global object and a list view to display all the fonts available on the system. The <a href="qml-qtquick-listview.html">ListView</a> type uses the list of fonts available as its model:</p>
<pre class="qml">        <span class="name">model</span>: <span class="name">Qt</span>.<span class="name">fontFamilies</span>()</pre>
<p>Inside the delegate, the font family is set with the modelData:</p>
<pre class="qml">                <span class="name">font</span>.family: <span class="name">modelData</span></pre>
<p>'Banner' is a simple example showing how to create a banner using a row of text types and a <a href="qml-qtquick-numberanimation.html">NumberAnimation</a>.</p>
<p>'Img tag' shows different ways of displaying images in a text types using the &lt;img&gt; tag.</p>
<p>'Text Layout' shows how to create a more complex layout for a text item. This example lays out the text in two columns using the onLineLaidOut handler that allows you to position and resize each line:</p>
<pre class="qml">        <span class="name">onLineLaidOut</span>: {
            <span class="name">line</span>.<span class="name">width</span> <span class="operator">=</span> <span class="name">width</span> <span class="operator">/</span> <span class="number">2</span>  <span class="operator">-</span> (<span class="name">margin</span>)

            <span class="keyword">if</span> (<span class="name">line</span>.<span class="name">y</span> <span class="operator">+</span> <span class="name">line</span>.<span class="name">height</span> <span class="operator">&gt;=</span> <span class="name">height</span>) {
                <span class="name">line</span>.<span class="name">y</span> <span class="operator">-=</span> <span class="name">height</span> <span class="operator">-</span> <span class="name">margin</span>
                <span class="name">line</span>.<span class="name">x</span> <span class="operator">=</span> <span class="name">width</span> <span class="operator">/</span> <span class="number">2</span> <span class="operator">+</span> <span class="name">margin</span>
            }
        }</pre>
<p>Files:</p>
<ul>
<li><a href="qtquick-text-styledtext-layout-qml.html">text/styledtext-layout.qml</a></li>
<li><a href="qtquick-text-text-qml.html">text/text.qml</a></li>
<li><a href="qtquick-text-fonts-availablefonts-qml.html">text/fonts/availableFonts.qml</a></li>
<li><a href="qtquick-text-fonts-banner-qml.html">text/fonts/banner.qml</a></li>
<li><a href="qtquick-text-fonts-fonts-qml.html">text/fonts/fonts.qml</a></li>
<li><a href="qtquick-text-fonts-hello-qml.html">text/fonts/hello.qml</a></li>
<li><a href="qtquick-text-imgtag-textwithimage-qml.html">text/imgtag/TextWithImage.qml</a></li>
<li><a href="qtquick-text-imgtag-imgtag-qml.html">text/imgtag/imgtag.qml</a></li>
<li><a href="qtquick-text-textselection-textselection-qml.html">text/textselection/textselection.qml</a></li>
<li><a href="qtquick-text-main-cpp.html">text/main.cpp</a></li>
<li><a href="qtquick-text-text-pro.html">text/text.pro</a></li>
<li><a href="qtquick-text-text-qmlproject.html">text/text.qmlproject</a></li>
<li><a href="qtquick-text-text-qrc.html">text/text.qrc</a></li>
</ul>
</div>
<!-- @@@text -->
        </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>