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