diff options
author | J-P Nurmi <jpnurmi@theqtcompany.com> | 2015-10-22 16:52:10 +0200 |
---|---|---|
committer | J-P Nurmi <jpnurmi@theqtcompany.com> | 2015-10-30 15:41:26 +0000 |
commit | 53a9c9e2c01199aec3c0848593226f8a3e7d5dee (patch) | |
tree | 82dc1480fcd2817da1e206ffd9863021c4b3f107 /src/imports/controls/doc/snippets/qtlabscontrols-scrollindicator-indicator.qml | |
parent | 72f3a5a0957e4347f8f3db6d4638866e52a8ab61 (diff) |
Move the code snippets to a more logical place
They are part of the documentation, but just auto-tested to ensure that
they are actually creatable and don't throw warnings. Therefore the
logical place is in the doc/snippets folder instead of somewhere in the
tests/ tree.
Change-Id: Id79a19890f7457ef277e7434a3fc6b6fb20eaa25
Reviewed-by: Mitch Curtis <mitch.curtis@theqtcompany.com>
Diffstat (limited to 'src/imports/controls/doc/snippets/qtlabscontrols-scrollindicator-indicator.qml')
-rw-r--r-- | src/imports/controls/doc/snippets/qtlabscontrols-scrollindicator-indicator.qml | 42 |
1 files changed, 42 insertions, 0 deletions
diff --git a/src/imports/controls/doc/snippets/qtlabscontrols-scrollindicator-indicator.qml b/src/imports/controls/doc/snippets/qtlabscontrols-scrollindicator-indicator.qml new file mode 100644 index 00000000..68e0fb33 --- /dev/null +++ b/src/imports/controls/doc/snippets/qtlabscontrols-scrollindicator-indicator.qml @@ -0,0 +1,42 @@ +/**************************************************************************** +** +** Copyright (C) 2015 The Qt Company Ltd. +** Contact: http://www.qt.io/licensing/ +** +** This file is part of the documentation of the Qt Toolkit. +** +** $QT_BEGIN_LICENSE:FDL$ +** Commercial License Usage +** Licensees holding valid commercial Qt licenses may use this file in +** accordance with the commercial license agreement provided with the +** Software or, alternatively, in accordance with the terms contained in +** a written agreement between you and The Qt Company. For licensing terms +** and conditions see http://www.qt.io/terms-conditions. For further +** information use the contact form at http://www.qt.io/contact-us. +** +** GNU Free Documentation License Usage +** Alternatively, this file may be used under the terms of the GNU Free +** Documentation License version 1.3 as published by the Free Software +** Foundation and appearing in the file included in the packaging of +** this file. Please review the following information to ensure +** the GNU Free Documentation License version 1.3 requirements +** will be met: http://www.gnu.org/copyleft/fdl.html. +** $QT_END_LICENSE$ +** +****************************************************************************/ + +import QtQuick 2.0 +import Qt.labs.controls 1.0 + +ScrollIndicator { + size: 0.5 + position: 0.5 + active: true + height: 100 + Rectangle { + parent: indicator + anchors.fill: parent + color: "transparent" + border.color: "red" + } +} |