Changeset View
Changeset View
Standalone View
Standalone View
applets/binary-clock/package/contents/ui/SquareColumn.qml
- This file was moved from applets/binary-clock/package/contents/ui/DotColumn.qml.
1 | /* | 1 | /* | ||
---|---|---|---|---|---|
2 | * Rewrite of the KDE4-Plasma Binary Clock for KF5/Plasma/QML | 2 | * Rewrite of the KDE4-Plasma Binary Clock for KF5/Plasma/QML | ||
3 | * | 3 | * | ||
4 | * Copyright 2014 Joseph Wenninger <jowenn@kde.org> | 4 | * Copyright 2014 Joseph Wenninger <jowenn@kde.org> | ||
5 | * Copyright 2018 Piotr Kąkol <piotrkakol@protonmail.com> | ||||
5 | * | 6 | * | ||
6 | * Original code (KDE4): | 7 | * Original code (KDE4): | ||
7 | * Copyright 2007 by Riccardo Iaconelli <riccardo@kde.org> | 8 | * Copyright 2007 by Riccardo Iaconelli <riccardo@kde.org> | ||
8 | * Copyright 2007 by Davide Bettio <davide.bettio@kdemail.net> | 9 | * Copyright 2007 by Davide Bettio <davide.bettio@kdemail.net> | ||
9 | * Copyright 2018 Piotr Kąkol <piotrkakol@protonmail.com> | | |||
10 | * | 10 | * | ||
11 | * This program is free software; you can redistribute it and/or | 11 | * This program is free software; you can redistribute it and/or | ||
12 | * modify it under the terms of the GNU General Public License as | 12 | * modify it under the terms of the GNU General Public License as | ||
13 | * published by the Free Software Foundation; either version 2 of | 13 | * published by the Free Software Foundation; either version 2 of | ||
14 | * the License, or (at your option) any later version. | 14 | * the License, or (at your option) any later version. | ||
15 | * | 15 | * | ||
16 | * This program is distributed in the hope that it will be useful, | 16 | * This program is distributed in the hope that it will be useful, | ||
17 | * but WITHOUT ANY WARRANTY; without even the implied warranty of | 17 | * but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
18 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | 18 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
19 | * GNU General Public License for more details. | 19 | * GNU General Public License for more details. | ||
20 | * | 20 | * | ||
21 | * You should have received a copy of the GNU General Public License | 21 | * You should have received a copy of the GNU General Public License | ||
22 | * along with this program. If not, see <http://www.gnu.org/licenses/>. | 22 | * along with this program. If not, see <http://www.gnu.org/licenses/>. | ||
23 | */ | 23 | */ | ||
24 | 24 | | |||
25 | import QtQuick 2.0 | 25 | import QtQuick 2.0 | ||
26 | 26 | | |||
27 | Item { | 27 | Item { | ||
28 | property int val | 28 | property int val | ||
29 | Dot { | 29 | Square { | ||
30 | x: 0 | 30 | x: 0 | ||
31 | y: 0 | 31 | y: 0 | ||
32 | val: parent.val | 32 | val: parent.val | ||
33 | bit: 8 | 33 | bit: 8 | ||
34 | } | 34 | } | ||
35 | Dot { | 35 | Square { | ||
36 | x: 0 | 36 | x: 0 | ||
37 | y: (dotSize+units.smallSpacing) | 37 | y: (squareSize+units.smallSpacing) | ||
38 | val: parent.val | 38 | val: parent.val | ||
39 | bit: 4 | 39 | bit: 4 | ||
40 | } | 40 | } | ||
41 | Dot { | 41 | Square { | ||
42 | x: 0 | 42 | x: 0 | ||
43 | y: 2*(dotSize+units.smallSpacing) | 43 | y: 2*(squareSize+units.smallSpacing) | ||
44 | val: parent.val | 44 | val: parent.val | ||
45 | bit: 2 | 45 | bit: 2 | ||
46 | } | 46 | } | ||
47 | Dot { | 47 | Square { | ||
48 | x: 0 | 48 | x: 0 | ||
49 | y: 3*(dotSize+units.smallSpacing) | 49 | y: 3*(squareSize+units.smallSpacing) | ||
50 | val: parent.val | 50 | val: parent.val | ||
51 | bit: 1 | 51 | bit: 1 | ||
52 | } | 52 | } | ||
53 | } | 53 | } | ||
54 | No newline at end of file | 54 | No newline at end of file |