This file is indexed.

/usr/share/qt5/doc/qtquick/qtquick-imageelements-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
 98
 99
100
101
102
103
104
105
106
<?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" />
<!-- imageelements.qdoc -->
  <title>Qt Quick Examples - Image Elements | 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 - Image Elements</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 - Image Elements</h1>
<span class="subtitle"></span>
<!-- $$$imageelements-description -->
<div class="descr"> <a name="details"></a>
<p>This is a collection of QML examples relating to image types.<p class="centerAlign"><img src="images/qml-imageelements-example.png" alt="" /></p><p>This is a collection of small QML examples relating to image types.</p>
<p>'<a href="qml-qtquick-borderimage.html">BorderImage</a>' shows off the various scaling modes of the <a href="qml-qtquick-borderimage.html">BorderImage</a> item by setting its horizontalTileMode and verticalTileMode properties.</p>
<p>'Image' shows off the various fill modes of the Image item.</p>
<p>'Shadows' shows how to create a drop shadow effect for a rectangular item using a <a href="qml-qtquick-borderimage.html">BorderImage</a>:</p>
<pre class="qml">    <span class="type"><a href="qml-qtquick-borderimage.html">BorderImage</a></span> {
        <span class="name">anchors</span>.fill: <span class="name">rectangle</span>
        <span class="type">anchors</span> { <span class="name">leftMargin</span>: -<span class="number">6</span>; <span class="name">topMargin</span>: -<span class="number">6</span>; <span class="name">rightMargin</span>: -<span class="number">8</span>; <span class="name">bottomMargin</span>: -<span class="number">8</span> }
        <span class="type">border</span> { <span class="name">left</span>: <span class="number">10</span>; <span class="name">top</span>: <span class="number">10</span>; <span class="name">right</span>: <span class="number">10</span>; <span class="name">bottom</span>: <span class="number">10</span> }
        <span class="name">source</span>: <span class="string">&quot;shadow.png&quot;</span>
    }</pre>
<p>'<a href="qml-qtquick-animatedsprite.html">AnimatedSprite</a>' shows how to display a simple animation using an <a href="qml-qtquick-animatedsprite.html">AnimatedSprite</a> object:</p>
<pre class="qml">    <span class="type"><a href="qml-qtquick-animatedsprite.html">AnimatedSprite</a></span> {
        <span class="name">id</span>: <span class="name">sprite</span>
        <span class="name">width</span>: <span class="number">170</span>
        <span class="name">height</span>: <span class="number">170</span>
        <span class="name">anchors</span>.centerIn: <span class="name">parent</span>
        <span class="name">source</span>: <span class="string">&quot;content/speaker.png&quot;</span>
        <span class="name">frameCount</span>: <span class="number">60</span>
        <span class="name">frameSync</span>: <span class="number">true</span>
        <span class="name">frameWidth</span>: <span class="number">170</span>
        <span class="name">frameHeight</span>: <span class="number">170</span>
        <span class="name">loops</span>: <span class="number">3</span>
    }</pre>
<p>The sprite animation will loop 3 times.</p>
<p>'<a href="qml-qtquick-spritesequence.html">SpriteSequence</a>' demonstrates using a sprite sequence to draw an animated and interactive bear. The <a href="qml-qtquick-spritesequence.html">SpriteSequence</a> defines 5 different sprites. The bear is initially in a 'still' state:</p>
<pre class="qml">        <span class="type"><a href="qml-qtquick-sprite.html">Sprite</a></span>{
            <span class="name">name</span>: <span class="string">&quot;still&quot;</span>
            <span class="name">source</span>: <span class="string">&quot;content/BearSheet.png&quot;</span>
            <span class="name">frameCount</span>: <span class="number">1</span>
            <span class="name">frameWidth</span>: <span class="number">256</span>
            <span class="name">frameHeight</span>: <span class="number">256</span>
            <span class="name">frameDuration</span>: <span class="number">100</span>
            <span class="name">to</span>: {&quot;still&quot;:<span class="number">1</span>, &quot;blink&quot;:<span class="number">0.1</span>, &quot;floating&quot;:<span class="number">0</span>}
        }</pre>
<p>When the scene is clicked, an animation sets the sprite sequence to the 'falling' states and animates the bear's y property.</p>
<pre class="qml">    <span class="type"><a href="qml-qtquick-sequentialanimation.html">SequentialAnimation</a></span> {
        <span class="name">id</span>: <span class="name">anim</span>
        <span class="type"><a href="qml-qtquick-scriptaction.html">ScriptAction</a></span> { <span class="name">script</span>: <span class="name">image</span>.<span class="name">goalSprite</span> <span class="operator">=</span> <span class="string">&quot;falling&quot;</span>; }
        <span class="type"><a href="qml-qtquick-numberanimation.html">NumberAnimation</a></span> { <span class="name">target</span>: <span class="name">image</span>; <span class="name">property</span>: <span class="string">&quot;y&quot;</span>; <span class="name">to</span>: <span class="number">480</span>; <span class="name">duration</span>: <span class="number">12000</span>; }
        <span class="type"><a href="qml-qtquick-scriptaction.html">ScriptAction</a></span> { <span class="name">script</span>: {<span class="name">image</span>.<span class="name">goalSprite</span> <span class="operator">=</span> <span class="string">&quot;&quot;</span>; <span class="name">image</span>.<span class="name">jumpTo</span>(<span class="string">&quot;still&quot;</span>);} }
        <span class="type"><a href="qml-qtquick-propertyaction.html">PropertyAction</a></span> { <span class="name">target</span>: <span class="name">image</span>; <span class="name">property</span>: <span class="string">&quot;y&quot;</span>; <span class="name">value</span>: <span class="number">0</span> }
    }</pre>
<p>At the end of the animation the bear is set back to its initial state.</p>
<p>Files:</p>
<ul>
<li><a href="qtquick-imageelements-animatedsprite-qml.html">imageelements/animatedsprite.qml</a></li>
<li><a href="qtquick-imageelements-borderimage-qml.html">imageelements/borderimage.qml</a></li>
<li><a href="qtquick-imageelements-image-qml.html">imageelements/image.qml</a></li>
<li><a href="qtquick-imageelements-imageelements-qml.html">imageelements/imageelements.qml</a></li>
<li><a href="qtquick-imageelements-shadows-qml.html">imageelements/shadows.qml</a></li>
<li><a href="qtquick-imageelements-spritesequence-qml.html">imageelements/spritesequence.qml</a></li>
<li><a href="qtquick-imageelements-content-borderimageselector-qml.html">imageelements/content/BorderImageSelector.qml</a></li>
<li><a href="qtquick-imageelements-content-imagecell-qml.html">imageelements/content/ImageCell.qml</a></li>
<li><a href="qtquick-imageelements-content-myborderimage-qml.html">imageelements/content/MyBorderImage.qml</a></li>
<li><a href="qtquick-imageelements-content-shadowrectangle-qml.html">imageelements/content/ShadowRectangle.qml</a></li>
<li><a href="qtquick-imageelements-main-cpp.html">imageelements/main.cpp</a></li>
<li><a href="qtquick-imageelements-imageelements-pro.html">imageelements/imageelements.pro</a></li>
<li><a href="qtquick-imageelements-imageelements-qmlproject.html">imageelements/imageelements.qmlproject</a></li>
<li><a href="qtquick-imageelements-imageelements-qrc.html">imageelements/imageelements.qrc</a></li>
</ul>
</div>
<!-- @@@imageelements -->
        </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>