This file is indexed.

/usr/share/qt5/doc/qtquickcontrols2/qtquickcontrols2-gallery-gallery-qml.html is in qtquickcontrols2-5-doc-html 5.7.1-1.

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
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html>
<html lang="en">
<head>
  <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
  <title>gallery.qml Example File | Qt Quick Controls 2 5.7</title>
  <link rel="stylesheet" type="text/css" href="style/offline-simple.css" />
  <script type="text/javascript">
    window.onload = function(){document.getElementsByTagName("link").item(0).setAttribute("href", "style/offline.css");};
  </script>
</head>
<body>
<div class="header" id="qtdocheader">
  <div class="main">
    <div class="main-rounded">
      <div class="navigationbar">
        <table><tr>
<td >Qt 5.7</td><td ><a href="qtquickcontrols2-index.html">Qt Quick Controls 2</a></td><td ><a href="qtquickcontrols2-gallery-example.html">Qt Quick Controls 2 - Gallery</a></td><td >gallery.qml Example File</td></tr></table><table class="buildversion"><tr>
<td id="buildversion" width="100%" align="right">Qt 5.7.1 Reference Documentation</td>
        </tr></table>
      </div>
    </div>
<div class="content">
<div class="line">
<div class="content mainContent">
<div class="sidebar"><div class="sidebar-content" id="sidebar-content"></div></div>
<h1 class="title">gallery.qml Example File</h1>
<span class="subtitle">gallery/gallery.qml</span>
<!-- $$$gallery/gallery.qml-description -->
<div class="descr"> <a name="details"></a>
<pre class="qml">

  <span class="comment">/****************************************************************************
  **
  ** Copyright (C) 2015 The Qt Company Ltd.
  ** Contact: http://www.qt.io/licensing/
  **
  ** This file is part of the examples of the Qt Toolkit.
  **
  ** $QT_BEGIN_LICENSE:BSD$
  ** You may use this file under the terms of the BSD license as follows:
  **
  ** &quot;Redistribution and use in source and binary forms, with or without
  ** modification, are permitted provided that the following conditions are
  ** met:
  **   * Redistributions of source code must retain the above copyright
  **     notice, this list of conditions and the following disclaimer.
  **   * Redistributions in binary form must reproduce the above copyright
  **     notice, this list of conditions and the following disclaimer in
  **     the documentation and/or other materials provided with the
  **     distribution.
  **   * Neither the name of The Qt Company Ltd nor the names of its
  **     contributors may be used to endorse or promote products derived
  **     from this software without specific prior written permission.
  **
  **
  ** THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
  ** &quot;AS IS&quot; AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
  ** LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
  ** A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
  ** OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
  ** SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
  ** LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
  ** DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
  ** THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
  ** (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
  ** OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.&quot;
  **
  ** $QT_END_LICENSE$
  **
  ****************************************************************************/</span>

  import QtQuick 2.6
  import QtQuick.Layouts 1.3
  import QtQuick.Controls 2.0
  import QtQuick.Controls.Material 2.0
  import QtQuick.Controls.Universal 2.0
  import Qt.labs.settings 1.0

  <span class="type">ApplicationWindow</span> {
      <span class="name">id</span>: <span class="name">window</span>
      <span class="name">width</span>: <span class="number">360</span>
      <span class="name">height</span>: <span class="number">520</span>
      <span class="name">visible</span>: <span class="number">true</span>
      <span class="name">title</span>: <span class="string">&quot;Qt Quick Controls 2&quot;</span>

      <span class="type">Settings</span> {
          <span class="name">id</span>: <span class="name">settings</span>
          property <span class="type">string</span> <span class="name">style</span>: <span class="string">&quot;Default&quot;</span>
      }

      <span class="name">header</span>: <span class="name">ToolBar</span> {
          <span class="name">Material</span>.foreground: <span class="string">&quot;white&quot;</span>

          <span class="type">RowLayout</span> {
              <span class="name">spacing</span>: <span class="number">20</span>
              <span class="name">anchors</span>.fill: <span class="name">parent</span>

              <span class="type">ToolButton</span> {
                  <span class="name">contentItem</span>: <span class="name">Image</span> {
                      <span class="name">fillMode</span>: <span class="name">Image</span>.<span class="name">Pad</span>
                      <span class="name">horizontalAlignment</span>: <span class="name">Image</span>.<span class="name">AlignHCenter</span>
                      <span class="name">verticalAlignment</span>: <span class="name">Image</span>.<span class="name">AlignVCenter</span>
                      <span class="name">source</span>: <span class="name">stackView</span>.<span class="name">depth</span> <span class="operator">&gt;</span> <span class="number">1</span> ? <span class="string">&quot;images/back.png&quot;</span> : <span class="string">&quot;images/drawer.png&quot;</span>
                  }
                  <span class="name">onClicked</span>: {
                      <span class="keyword">if</span> (<span class="name">stackView</span>.<span class="name">depth</span> <span class="operator">&gt;</span> <span class="number">1</span>) {
                          <span class="name">stackView</span>.<span class="name">pop</span>()
                          <span class="name">listView</span>.<span class="name">currentIndex</span> <span class="operator">=</span> -<span class="number">1</span>
                      } <span class="keyword">else</span> {
                          <span class="name">drawer</span>.<span class="name">open</span>()
                      }
                  }
              }

              <span class="type">Label</span> {
                  <span class="name">id</span>: <span class="name">titleLabel</span>
                  <span class="name">text</span>: <span class="name">listView</span>.<span class="name">currentItem</span> ? <span class="name">listView</span>.<span class="name">currentItem</span>.<span class="name">text</span> : <span class="string">&quot;Gallery&quot;</span>
                  <span class="name">font</span>.pixelSize: <span class="number">20</span>
                  <span class="name">elide</span>: <span class="name">Label</span>.<span class="name">ElideRight</span>
                  <span class="name">horizontalAlignment</span>: <span class="name">Qt</span>.<span class="name">AlignHCenter</span>
                  <span class="name">verticalAlignment</span>: <span class="name">Qt</span>.<span class="name">AlignVCenter</span>
                  <span class="name">Layout</span>.fillWidth: <span class="number">true</span>
              }

              <span class="type">ToolButton</span> {
                  <span class="name">contentItem</span>: <span class="name">Image</span> {
                      <span class="name">fillMode</span>: <span class="name">Image</span>.<span class="name">Pad</span>
                      <span class="name">horizontalAlignment</span>: <span class="name">Image</span>.<span class="name">AlignHCenter</span>
                      <span class="name">verticalAlignment</span>: <span class="name">Image</span>.<span class="name">AlignVCenter</span>
                      <span class="name">source</span>: <span class="string">&quot;qrc:/images/menu.png&quot;</span>
                  }
                  <span class="name">onClicked</span>: <span class="name">optionsMenu</span>.<span class="name">open</span>()

                  <span class="type">Menu</span> {
                      <span class="name">id</span>: <span class="name">optionsMenu</span>
                      <span class="name">x</span>: <span class="name">parent</span>.<span class="name">width</span> <span class="operator">-</span> <span class="name">width</span>
                      <span class="name">transformOrigin</span>: <span class="name">Menu</span>.<span class="name">TopRight</span>

                      <span class="type">MenuItem</span> {
                          <span class="name">text</span>: <span class="string">&quot;Settings&quot;</span>
                          <span class="name">onTriggered</span>: <span class="name">settingsPopup</span>.<span class="name">open</span>()
                      }
                      <span class="type">MenuItem</span> {
                          <span class="name">text</span>: <span class="string">&quot;About&quot;</span>
                          <span class="name">onTriggered</span>: <span class="name">aboutDialog</span>.<span class="name">open</span>()
                      }
                  }
              }
          }
      }

      <span class="type">Drawer</span> {
          <span class="name">id</span>: <span class="name">drawer</span>
          <span class="name">width</span>: <span class="name">Math</span>.<span class="name">min</span>(<span class="name">window</span>.<span class="name">width</span>, <span class="name">window</span>.<span class="name">height</span>) <span class="operator">/</span> <span class="number">3</span> <span class="operator">*</span> <span class="number">2</span>
          <span class="name">height</span>: <span class="name">window</span>.<span class="name">height</span>
          <span class="name">dragMargin</span>: <span class="name">stackView</span>.<span class="name">depth</span> <span class="operator">&gt;</span> <span class="number">1</span> ? <span class="number">0</span> : <span class="name">undefined</span>

          <span class="type">ListView</span> {
              <span class="name">id</span>: <span class="name">listView</span>
              <span class="name">currentIndex</span>: -<span class="number">1</span>
              <span class="name">anchors</span>.fill: <span class="name">parent</span>

              <span class="name">delegate</span>: <span class="name">ItemDelegate</span> {
                  <span class="name">width</span>: <span class="name">parent</span>.<span class="name">width</span>
                  <span class="name">text</span>: <span class="name">model</span>.<span class="name">title</span>
                  <span class="name">highlighted</span>: <span class="name">ListView</span>.<span class="name">isCurrentItem</span>
                  <span class="name">onClicked</span>: {
                      <span class="keyword">if</span> (<span class="name">listView</span>.<span class="name">currentIndex</span> <span class="operator">!=</span> <span class="name">index</span>) {
                          <span class="name">listView</span>.<span class="name">currentIndex</span> <span class="operator">=</span> <span class="name">index</span>
                          <span class="name">stackView</span>.<span class="name">push</span>(<span class="name">model</span>.<span class="name">source</span>)
                      }
                      <span class="name">drawer</span>.<span class="name">close</span>()
                  }
              }

              <span class="name">model</span>: <span class="name">ListModel</span> {
                  <span class="type">ListElement</span> { <span class="name">title</span>: <span class="string">&quot;BusyIndicator&quot;</span>; <span class="name">source</span>: <span class="string">&quot;qrc:/pages/BusyIndicatorPage.qml&quot;</span> }
                  <span class="type">ListElement</span> { <span class="name">title</span>: <span class="string">&quot;Button&quot;</span>; <span class="name">source</span>: <span class="string">&quot;qrc:/pages/ButtonPage.qml&quot;</span> }
                  <span class="type">ListElement</span> { <span class="name">title</span>: <span class="string">&quot;CheckBox&quot;</span>; <span class="name">source</span>: <span class="string">&quot;qrc:/pages/CheckBoxPage.qml&quot;</span> }
                  <span class="type">ListElement</span> { <span class="name">title</span>: <span class="string">&quot;ComboBox&quot;</span>; <span class="name">source</span>: <span class="string">&quot;qrc:/pages/ComboBoxPage.qml&quot;</span> }
                  <span class="type">ListElement</span> { <span class="name">title</span>: <span class="string">&quot;Dial&quot;</span>; <span class="name">source</span>: <span class="string">&quot;qrc:/pages/DialPage.qml&quot;</span> }
                  <span class="type">ListElement</span> { <span class="name">title</span>: <span class="string">&quot;Delegates&quot;</span>; <span class="name">source</span>: <span class="string">&quot;qrc:/pages/DelegatePage.qml&quot;</span> }
                  <span class="type">ListElement</span> { <span class="name">title</span>: <span class="string">&quot;Drawer&quot;</span>; <span class="name">source</span>: <span class="string">&quot;qrc:/pages/DrawerPage.qml&quot;</span> }
                  <span class="type">ListElement</span> { <span class="name">title</span>: <span class="string">&quot;Frame&quot;</span>; <span class="name">source</span>: <span class="string">&quot;qrc:/pages/FramePage.qml&quot;</span> }
                  <span class="type">ListElement</span> { <span class="name">title</span>: <span class="string">&quot;GroupBox&quot;</span>; <span class="name">source</span>: <span class="string">&quot;qrc:/pages/GroupBoxPage.qml&quot;</span> }
                  <span class="type">ListElement</span> { <span class="name">title</span>: <span class="string">&quot;Menu&quot;</span>; <span class="name">source</span>: <span class="string">&quot;qrc:/pages/MenuPage.qml&quot;</span> }
                  <span class="type">ListElement</span> { <span class="name">title</span>: <span class="string">&quot;PageIndicator&quot;</span>; <span class="name">source</span>: <span class="string">&quot;qrc:/pages/PageIndicatorPage.qml&quot;</span> }
                  <span class="type">ListElement</span> { <span class="name">title</span>: <span class="string">&quot;Popup&quot;</span>; <span class="name">source</span>: <span class="string">&quot;qrc:/pages/PopupPage.qml&quot;</span> }
                  <span class="type">ListElement</span> { <span class="name">title</span>: <span class="string">&quot;ProgressBar&quot;</span>; <span class="name">source</span>: <span class="string">&quot;qrc:/pages/ProgressBarPage.qml&quot;</span> }
                  <span class="type">ListElement</span> { <span class="name">title</span>: <span class="string">&quot;RadioButton&quot;</span>; <span class="name">source</span>: <span class="string">&quot;qrc:/pages/RadioButtonPage.qml&quot;</span> }
                  <span class="type">ListElement</span> { <span class="name">title</span>: <span class="string">&quot;RangeSlider&quot;</span>; <span class="name">source</span>: <span class="string">&quot;qrc:/pages/RangeSliderPage.qml&quot;</span> }
                  <span class="type">ListElement</span> { <span class="name">title</span>: <span class="string">&quot;ScrollBar&quot;</span>; <span class="name">source</span>: <span class="string">&quot;qrc:/pages/ScrollBarPage.qml&quot;</span> }
                  <span class="type">ListElement</span> { <span class="name">title</span>: <span class="string">&quot;ScrollIndicator&quot;</span>; <span class="name">source</span>: <span class="string">&quot;qrc:/pages/ScrollIndicatorPage.qml&quot;</span> }
                  <span class="type">ListElement</span> { <span class="name">title</span>: <span class="string">&quot;Slider&quot;</span>; <span class="name">source</span>: <span class="string">&quot;qrc:/pages/SliderPage.qml&quot;</span> }
                  <span class="type">ListElement</span> { <span class="name">title</span>: <span class="string">&quot;SpinBox&quot;</span>; <span class="name">source</span>: <span class="string">&quot;qrc:/pages/SpinBoxPage.qml&quot;</span> }
                  <span class="type">ListElement</span> { <span class="name">title</span>: <span class="string">&quot;StackView&quot;</span>; <span class="name">source</span>: <span class="string">&quot;qrc:/pages/StackViewPage.qml&quot;</span> }
                  <span class="type">ListElement</span> { <span class="name">title</span>: <span class="string">&quot;SwipeView&quot;</span>; <span class="name">source</span>: <span class="string">&quot;qrc:/pages/SwipeViewPage.qml&quot;</span> }
                  <span class="type">ListElement</span> { <span class="name">title</span>: <span class="string">&quot;Switch&quot;</span>; <span class="name">source</span>: <span class="string">&quot;qrc:/pages/SwitchPage.qml&quot;</span> }
                  <span class="type">ListElement</span> { <span class="name">title</span>: <span class="string">&quot;TabBar&quot;</span>; <span class="name">source</span>: <span class="string">&quot;qrc:/pages/TabBarPage.qml&quot;</span> }
                  <span class="type">ListElement</span> { <span class="name">title</span>: <span class="string">&quot;TextArea&quot;</span>; <span class="name">source</span>: <span class="string">&quot;qrc:/pages/TextAreaPage.qml&quot;</span> }
                  <span class="type">ListElement</span> { <span class="name">title</span>: <span class="string">&quot;TextField&quot;</span>; <span class="name">source</span>: <span class="string">&quot;qrc:/pages/TextFieldPage.qml&quot;</span> }
                  <span class="type">ListElement</span> { <span class="name">title</span>: <span class="string">&quot;ToolTip&quot;</span>; <span class="name">source</span>: <span class="string">&quot;qrc:/pages/ToolTipPage.qml&quot;</span> }
                  <span class="type">ListElement</span> { <span class="name">title</span>: <span class="string">&quot;Tumbler&quot;</span>; <span class="name">source</span>: <span class="string">&quot;qrc:/pages/TumblerPage.qml&quot;</span> }
              }

              <span class="name">ScrollIndicator</span>.vertical: <span class="name">ScrollIndicator</span> { }
          }
      }

      <span class="type">StackView</span> {
          <span class="name">id</span>: <span class="name">stackView</span>
          <span class="name">anchors</span>.fill: <span class="name">parent</span>

          <span class="name">initialItem</span>: <span class="name">Pane</span> {
              <span class="name">id</span>: <span class="name">pane</span>

              <span class="type">Image</span> {
                  <span class="name">id</span>: <span class="name">logo</span>
                  <span class="name">width</span>: <span class="name">pane</span>.<span class="name">availableWidth</span> <span class="operator">/</span> <span class="number">2</span>
                  <span class="name">height</span>: <span class="name">pane</span>.<span class="name">availableHeight</span> <span class="operator">/</span> <span class="number">2</span>
                  <span class="name">anchors</span>.centerIn: <span class="name">parent</span>
                  <span class="name">anchors</span>.verticalCenterOffset: -<span class="number">50</span>
                  <span class="name">fillMode</span>: <span class="name">Image</span>.<span class="name">PreserveAspectFit</span>
                  <span class="name">source</span>: <span class="string">&quot;qrc:/images/qt-logo.png&quot;</span>
              }

              <span class="type">Label</span> {
                  <span class="name">text</span>: <span class="string">&quot;Qt Quick Controls 2 provides a set of controls that can be used to build complete interfaces in Qt Quick.&quot;</span>
                  <span class="name">anchors</span>.margins: <span class="number">20</span>
                  <span class="name">anchors</span>.top: <span class="name">logo</span>.<span class="name">bottom</span>
                  <span class="name">anchors</span>.left: <span class="name">parent</span>.<span class="name">left</span>
                  <span class="name">anchors</span>.right: <span class="name">parent</span>.<span class="name">right</span>
                  <span class="name">anchors</span>.bottom: <span class="name">arrow</span>.<span class="name">top</span>
                  <span class="name">horizontalAlignment</span>: <span class="name">Label</span>.<span class="name">AlignHCenter</span>
                  <span class="name">verticalAlignment</span>: <span class="name">Label</span>.<span class="name">AlignVCenter</span>
                  <span class="name">wrapMode</span>: <span class="name">Label</span>.<span class="name">Wrap</span>
              }

              <span class="type">Image</span> {
                  <span class="name">id</span>: <span class="name">arrow</span>
                  <span class="name">source</span>: <span class="string">&quot;qrc:/images/arrow.png&quot;</span>
                  <span class="name">anchors</span>.left: <span class="name">parent</span>.<span class="name">left</span>
                  <span class="name">anchors</span>.bottom: <span class="name">parent</span>.<span class="name">bottom</span>
              }
          }
      }

      <span class="type">Popup</span> {
          <span class="name">id</span>: <span class="name">settingsPopup</span>
          <span class="name">x</span>: (<span class="name">window</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="name">y</span>: <span class="name">window</span>.<span class="name">height</span> <span class="operator">/</span> <span class="number">6</span>
          <span class="name">width</span>: <span class="name">Math</span>.<span class="name">min</span>(<span class="name">window</span>.<span class="name">width</span>, <span class="name">window</span>.<span class="name">height</span>) <span class="operator">/</span> <span class="number">3</span> <span class="operator">*</span> <span class="number">2</span>
          <span class="name">height</span>: <span class="name">settingsColumn</span>.<span class="name">implicitHeight</span> <span class="operator">+</span> <span class="name">topPadding</span> <span class="operator">+</span> <span class="name">bottomPadding</span>
          <span class="name">modal</span>: <span class="number">true</span>
          <span class="name">focus</span>: <span class="number">true</span>

          <span class="name">contentItem</span>: <span class="name">ColumnLayout</span> {
              <span class="name">id</span>: <span class="name">settingsColumn</span>
              <span class="name">spacing</span>: <span class="number">20</span>

              <span class="type">Label</span> {
                  <span class="name">text</span>: <span class="string">&quot;Settings&quot;</span>
                  <span class="name">font</span>.bold: <span class="number">true</span>
              }

              <span class="type">RowLayout</span> {
                  <span class="name">spacing</span>: <span class="number">10</span>

                  <span class="type">Label</span> {
                      <span class="name">text</span>: <span class="string">&quot;Style:&quot;</span>
                  }

                  <span class="type">ComboBox</span> {
                      <span class="name">id</span>: <span class="name">styleBox</span>
                      property <span class="type">int</span> <span class="name">styleIndex</span>: -<span class="number">1</span>
                      <span class="name">model</span>: [<span class="string">&quot;Default&quot;</span>, <span class="string">&quot;Material&quot;</span>, <span class="string">&quot;Universal&quot;</span>]
                      <span class="name">Component</span>.onCompleted: {
                          <span class="name">styleIndex</span> <span class="operator">=</span> <span class="name">find</span>(<span class="name">settings</span>.<span class="name">style</span>, <span class="name">Qt</span>.<span class="name">MatchFixedString</span>)
                          <span class="keyword">if</span> (<span class="name">styleIndex</span> <span class="operator">!==</span> -<span class="number">1</span>)
                              <span class="name">currentIndex</span> <span class="operator">=</span> <span class="name">styleIndex</span>
                      }
                      <span class="name">Layout</span>.fillWidth: <span class="number">true</span>
                  }
              }

              <span class="type">Label</span> {
                  <span class="name">text</span>: <span class="string">&quot;Restart required&quot;</span>
                  <span class="name">color</span>: <span class="string">&quot;#e41e25&quot;</span>
                  <span class="name">opacity</span>: <span class="name">styleBox</span>.<span class="name">currentIndex</span> <span class="operator">!==</span> <span class="name">styleBox</span>.<span class="name">styleIndex</span> ? <span class="number">1.0</span> : <span class="number">0.0</span>
                  <span class="name">horizontalAlignment</span>: <span class="name">Label</span>.<span class="name">AlignHCenter</span>
                  <span class="name">verticalAlignment</span>: <span class="name">Label</span>.<span class="name">AlignVCenter</span>
                  <span class="name">Layout</span>.fillWidth: <span class="number">true</span>
                  <span class="name">Layout</span>.fillHeight: <span class="number">true</span>
              }

              <span class="type">RowLayout</span> {
                  <span class="name">spacing</span>: <span class="number">10</span>

                  <span class="type">Button</span> {
                      <span class="name">id</span>: <span class="name">okButton</span>
                      <span class="name">text</span>: <span class="string">&quot;Ok&quot;</span>
                      <span class="name">onClicked</span>: {
                          <span class="name">settings</span>.<span class="name">style</span> <span class="operator">=</span> <span class="name">styleBox</span>.<span class="name">displayText</span>
                          <span class="name">settingsPopup</span>.<span class="name">close</span>()
                      }

                      <span class="name">Material</span>.foreground: <span class="name">Material</span>.<span class="name">primary</span>
                      <span class="name">Material</span>.background: <span class="string">&quot;transparent&quot;</span>
                      <span class="name">Material</span>.elevation: <span class="number">0</span>

                      <span class="name">Layout</span>.preferredWidth: <span class="number">0</span>
                      <span class="name">Layout</span>.fillWidth: <span class="number">true</span>
                  }

                  <span class="type">Button</span> {
                      <span class="name">id</span>: <span class="name">cancelButton</span>
                      <span class="name">text</span>: <span class="string">&quot;Cancel&quot;</span>
                      <span class="name">onClicked</span>: {
                          <span class="name">styleBox</span>.<span class="name">currentIndex</span> <span class="operator">=</span> <span class="name">styleBox</span>.<span class="name">styleIndex</span>
                          <span class="name">settingsPopup</span>.<span class="name">close</span>()
                      }

                      <span class="name">Material</span>.background: <span class="string">&quot;transparent&quot;</span>
                      <span class="name">Material</span>.elevation: <span class="number">0</span>

                      <span class="name">Layout</span>.preferredWidth: <span class="number">0</span>
                      <span class="name">Layout</span>.fillWidth: <span class="number">true</span>
                  }
              }
          }
      }

      <span class="type">Popup</span> {
          <span class="name">id</span>: <span class="name">aboutDialog</span>
          <span class="name">modal</span>: <span class="number">true</span>
          <span class="name">focus</span>: <span class="number">true</span>
          <span class="name">x</span>: (<span class="name">window</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="name">y</span>: <span class="name">window</span>.<span class="name">height</span> <span class="operator">/</span> <span class="number">6</span>
          <span class="name">width</span>: <span class="name">Math</span>.<span class="name">min</span>(<span class="name">window</span>.<span class="name">width</span>, <span class="name">window</span>.<span class="name">height</span>) <span class="operator">/</span> <span class="number">3</span> <span class="operator">*</span> <span class="number">2</span>
          <span class="name">contentHeight</span>: <span class="name">aboutColumn</span>.<span class="name">height</span>

          <span class="type">Column</span> {
              <span class="name">id</span>: <span class="name">aboutColumn</span>
              <span class="name">spacing</span>: <span class="number">20</span>

              <span class="type">Label</span> {
                  <span class="name">text</span>: <span class="string">&quot;About&quot;</span>
                  <span class="name">font</span>.bold: <span class="number">true</span>
              }

              <span class="type">Label</span> {
                  <span class="name">width</span>: <span class="name">aboutDialog</span>.<span class="name">availableWidth</span>
                  <span class="name">text</span>: <span class="string">&quot;The Qt Quick Controls 2 module delivers the next generation user interface controls based on Qt Quick.&quot;</span>
                  <span class="name">wrapMode</span>: <span class="name">Label</span>.<span class="name">Wrap</span>
                  <span class="name">font</span>.pixelSize: <span class="number">12</span>
              }

              <span class="type">Label</span> {
                  <span class="name">width</span>: <span class="name">aboutDialog</span>.<span class="name">availableWidth</span>
                  <span class="name">text</span>: <span class="string">&quot;In comparison to the desktop-oriented Qt Quick Controls 1, Qt Quick Controls 2 &quot;</span>
                      <span class="operator">+</span> <span class="string">&quot;are an order of magnitude simpler, lighter and faster, and are primarily targeted &quot;</span>
                      <span class="operator">+</span> <span class="string">&quot;towards embedded and mobile platforms.&quot;</span>
                  <span class="name">wrapMode</span>: <span class="name">Label</span>.<span class="name">Wrap</span>
                  <span class="name">font</span>.pixelSize: <span class="number">12</span>
              }
          }
      }
  }

</pre>
</div>
<!-- @@@gallery/gallery.qml -->
        </div>
       </div>
   </div>
   </div>
</div>
<div class="footer">
   <p>
   <acronym title="Copyright">&copy;</acronym> 2016 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>