This file is indexed.

/usr/share/qt5/doc/qtquickdialogs/qtquickdialogs-systemdialogs-example.html is in qtquickcontrols5-doc-html 5.3.2-2.

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
<?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" />
<!-- systemdialogs.qdoc -->
  <title>Qt Quick System Dialog Examples | QtQuickDialogs 5.3</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.3</li>
<li><a href="qtquickdialogs-index.html">Qt Quick Dialogs</a></li>
<li>Qt Quick System Dialog Examples</li>
<li id="buildversion">
Qt 5.3.2 Reference Documentation</li>
    </ul>
    </div>
</div>
<div class="content">
<div class="line">
<div class="content mainContent">
<h1 class="title">Qt Quick System Dialog Examples</h1>
<span class="subtitle"></span>
<!-- $$$systemdialogs-description -->
<div class="descr"> <a name="details"></a>
<p>This example demonstrates the system dialog types in QML<p class="centerAlign"><img src="images/systemdialogs-example.jpg" alt="" /></p><p>This example demonstrates the system dialogs in the <a href="qtquickdialogs-index.html">Qt Quick Dialogs</a> module. The appearance and behavior is platform-dependent.</p>
<p>A <a href="qml-qtquick-dialogs-filedialog.html">FileDialog</a> is used to choose a single file, multiple files or a single directory, depending on how it is configured.</p>
<pre class="qml"><span class="type"><a href="qml-qtquick-dialogs-filedialog.html">FileDialog</a></span> {
    <span class="name">id</span>: <span class="name">fileDialog</span>
    <span class="name">visible</span>: <span class="name">fileDialogVisible</span>.<span class="name">checked</span>
    <span class="name">modality</span>: <span class="name">fileDialogModal</span>.<span class="name">checked</span> ? <span class="name">Qt</span>.<span class="name">WindowModal</span> : <span class="name">Qt</span>.<span class="name">NonModal</span>
    <span class="name">title</span>: <span class="name">fileDialogSelectFolder</span>.<span class="name">checked</span> ? <span class="string">&quot;Choose a folder&quot;</span> :
        (<span class="name">fileDialogSelectMultiple</span>.<span class="name">checked</span> ? <span class="string">&quot;Choose some files&quot;</span> : <span class="string">&quot;Choose a file&quot;</span>)
    <span class="name">selectExisting</span>: <span class="name">fileDialogSelectExisting</span>.<span class="name">checked</span>
    <span class="name">selectMultiple</span>: <span class="name">fileDialogSelectMultiple</span>.<span class="name">checked</span>
    <span class="name">selectFolder</span>: <span class="name">fileDialogSelectFolder</span>.<span class="name">checked</span>
    <span class="name">nameFilters</span>: [ <span class="string">&quot;Image files (*.png *.jpg)&quot;</span>, <span class="string">&quot;All files (*)&quot;</span> ]
    <span class="name">selectedNameFilter</span>: <span class="string">&quot;All files (*)&quot;</span>
    <span class="name">onAccepted</span>: {
        <span class="name">console</span>.<span class="name">log</span>(<span class="string">&quot;Accepted: &quot;</span> <span class="operator">+</span> <span class="name">fileUrls</span>)
        <span class="keyword">if</span> (<span class="name">fileDialogOpenFiles</span>.<span class="name">checked</span>)
            <span class="keyword">for</span> (<span class="keyword">var</span> <span class="name">i</span> = <span class="number">0</span>; <span class="name">i</span> <span class="operator">&lt;</span> <span class="name">fileUrls</span>.<span class="name">length</span>; ++<span class="name">i</span>)
                <span class="name">Qt</span>.<span class="name">openUrlExternally</span>(<span class="name">fileUrls</span>[<span class="name">i</span>])
    }
    <span class="name">onRejected</span>: { <span class="name">console</span>.<span class="name">log</span>(<span class="string">&quot;Rejected&quot;</span>) }
}</pre>
<p>A <a href="qml-qtquick-dialogs-colordialog.html">ColorDialog</a> is used to choose a color, with or without alpha (transparency) depending on how it is configured.</p>
<pre class="qml"><span class="type"><a href="qml-qtquick-dialogs-colordialog.html">ColorDialog</a></span> {
    <span class="name">id</span>: <span class="name">colorDialog</span>
    <span class="name">visible</span>: <span class="name">colorDialogVisible</span>.<span class="name">checked</span>
    <span class="name">modality</span>: <span class="name">colorDialogModal</span>.<span class="name">checked</span> ? <span class="name">Qt</span>.<span class="name">WindowModal</span> : <span class="name">Qt</span>.<span class="name">NonModal</span>
    <span class="name">title</span>: <span class="string">&quot;Choose a color&quot;</span>
    <span class="name">color</span>: <span class="string">&quot;green&quot;</span>
    <span class="name">showAlphaChannel</span>: <span class="name">colorDialogAlpha</span>.<span class="name">checked</span>
    <span class="name">onAccepted</span>: { <span class="name">console</span>.<span class="name">log</span>(<span class="string">&quot;Accepted: &quot;</span> <span class="operator">+</span> <span class="name">color</span>) }
    <span class="name">onRejected</span>: { <span class="name">console</span>.<span class="name">log</span>(<span class="string">&quot;Rejected&quot;</span>) }
}</pre>
<p>The example can be built as a standalone executable, but each type of dialog is demonstrated in a separate QML file which can also be run separately with qmlscene.</p>
<p>Files:</p>
<ul>
<li><a href="qtquickdialogs-systemdialogs-colordialogs-qml.html">systemdialogs/ColorDialogs.qml</a></li>
<li><a href="qtquickdialogs-systemdialogs-customdialogs-qml.html">systemdialogs/CustomDialogs.qml</a></li>
<li><a href="qtquickdialogs-systemdialogs-filedialogs-qml.html">systemdialogs/FileDialogs.qml</a></li>
<li><a href="qtquickdialogs-systemdialogs-fontdialogs-qml.html">systemdialogs/FontDialogs.qml</a></li>
<li><a href="qtquickdialogs-systemdialogs-messagedialogs-qml.html">systemdialogs/MessageDialogs.qml</a></li>
<li><a href="qtquickdialogs-systemdialogs-systemdialogs-qml.html">systemdialogs/systemdialogs.qml</a></li>
<li><a href="qtquickdialogs-systemdialogs-main-cpp.html">systemdialogs/main.cpp</a></li>
<li><a href="qtquickdialogs-systemdialogs-systemdialogs-pro.html">systemdialogs/systemdialogs.pro</a></li>
<li><a href="qtquickdialogs-systemdialogs-systemdialogs-qrc.html">systemdialogs/systemdialogs.qrc</a></li>
</ul>
</div>
<!-- @@@systemdialogs -->
        </div>
       </div>
   </div>
   </div>
</div>
<div class="footer">
   <p>
   <acronym title="Copyright">&copy;</acronym> 2014 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>