Debian Codegraph @

tests/manual/scenegraph_lancelot/data/shape/shape_multiline.qml

raw
1 /****************************************************************************
2 **
3 ** Copyright (C) 2019 The Qt Company Ltd.
4 ** Contact: https://www.qt.io/licensing/
5 **
6 ** This file is part of the test suite of the Qt Toolkit.
7 **
8 ** $QT_BEGIN_LICENSE:GPL-EXCEPT$
9 ** Commercial License Usage
10 ** Licensees holding valid commercial Qt licenses may use this file in
11 ** accordance with the commercial license agreement provided with the
12 ** Software or, alternatively, in accordance with the terms contained in
13 ** a written agreement between you and The Qt Company. For licensing terms
14 ** and conditions see https://www.qt.io/terms-conditions. For further
15 ** information use the contact form at https://www.qt.io/contact-us.
16 **
17 ** GNU General Public License Usage
18 ** Alternatively, this file may be used under the terms of the GNU
19 ** General Public License version 3 as published by the Free Software
20 ** Foundation with exceptions as appearing in the file LICENSE.GPL3-EXCEPT
21 ** included in the packaging of this file. Please review the following
22 ** information to ensure the GNU General Public License requirements will
23 ** be met: https://www.gnu.org/licenses/gpl-3.0.html.
24 **
25 ** $QT_END_LICENSE$
26 **
27 ****************************************************************************/
28
29 import QtQuick 2.14
30 import QtQuick.Shapes 1.14
31
32 Item {
33 id: root
34 width: 320
35 height: 320
36
37 Shape {
38 vendorExtensionsEnabled: false
39 anchors.fill: parent
40
41 ShapePath {
42 strokeWidth: 1
43 strokeColor: "red"
44 fillColor: Qt.rgba(1,0,0,0.3)
45 scale: Qt.size(root.width - 1, root.height - 1)
46 PathMultiline {
47 paths: [
48 [Qt.point(0.5, 0.06698),
49 Qt.point(1, 0.93301),
50 Qt.point(0, 0.93301),
51 Qt.point(0.5, 0.06698)],
52
53 [Qt.point(0.5, 0.12472),
54 Qt.point(0.95, 0.90414),
55 Qt.point(0.05, 0.90414),
56 Qt.point(0.5, 0.12472)],
57
58 [Qt.point(0.47131, 0.32986),
59 Qt.point(0.36229, 0.64789),
60 Qt.point(0.51492, 0.58590),
61 Qt.point(0.47563, 0.76014),
62 Qt.point(0.44950, 0.73590),
63 Qt.point(0.46292, 0.83392),
64 Qt.point(0.52162, 0.75190),
65 Qt.point(0.48531, 0.76230),
66 Qt.point(0.57529, 0.53189),
67 Qt.point(0.41261, 0.59189),
68 Qt.point(0.53001, 0.32786),
69 Qt.point(0.47131, 0.32986)]
70 ]
71 }
72 }
73 }
74 }