Debian Codegraph @

qml/Viewfinder/GridLines.qml

raw
1 /*
2 * <one line to give the program's name and a brief idea of what it does.>
3 * Copyright (C) 2019 eran <email>
4 *
5 * This program is free software: you can redistribute it and/or modify
6 * it under the terms of the GNU General Public License as published by
7 * the Free Software Foundation, either version 3 of the License, or
8 * (at your option) any later version.
9 *
10 * This program is distributed in the hope that it will be useful,
11 * but WITHOUT ANY WARRANTY; without even the implied warranty of
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 * GNU General Public License for more details.
14 *
15 * You should have received a copy of the GNU General Public License
16 * along with this program. If not, see <http://www.gnu.org/licenses/>.
17 */
18
19 import QtQuick 2.12
20
21 Item {
22 id: gridlines
23 objectName: "gridlines"
24 anchors.fill:parent
25
26 property color color: Qt.rgba(0.8, 0.8, 0.8, 0.8)
27 property real thickness: units.dp(1)
28
29 Rectangle {
30 y: parent.height / 3
31 width: parent.width
32 height: gridlines.thickness
33 color: gridlines.color
34 }
35
36 Rectangle {
37 y: 2 * parent.height / 3
38 width: parent.width
39 height: gridlines.thickness
40 color: gridlines.color
41 }
42
43 Rectangle {
44 x: parent.width / 3
45 width: gridlines.thickness
46 height: parent.height
47 color: gridlines.color
48 }
49
50 Rectangle {
51 x: 2 * parent.width / 3
52 width: gridlines.thickness
53 height: parent.height
54 color: gridlines.color
55 }
56 }