-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmain.qml
62 lines (53 loc) · 1.55 KB
/
main.qml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
// import QtQuick 1.0 // to target S60 5th Edition or Maemo 5
import QtQuick 1.1
Rectangle {
id: board
width: 800
height: 600
color: "green"
property int cardWidth: 79
property int cardHeight: 123
Grid {
id: newStacks
x: 2
anchors.left: board.left
anchors.top: board.top
anchors.margins: 30
rows: 1
columns: 2
spacing: 10
CardHolder {width: cardWidth; height: cardHeight}
CardHolder {width: cardWidth; height: cardHeight}
}
Grid {
id: cardStacks
x: 4;
anchors.right: board.right
anchors.margins: 30
anchors.top: board.top;
rows: 1;
columns: 4;
spacing: 15
CardHolder {width: cardWidth; height: cardHeight}
CardHolder {width: cardWidth; height: cardHeight}
CardHolder {width: cardWidth; height: cardHeight}
CardHolder {width: cardWidth; height: cardHeight}
}
Grid {
id: cards
x: 6
anchors.margins: 30
anchors.top: cardStacks.bottom
anchors.right: cardStacks.right
rows: 1
columns: 6
spacing: 15
CardHolder{width: cardWidth; height: cardHeight}
CardHolder{width: cardWidth; height: cardHeight}
CardHolder{width: cardWidth; height: cardHeight}
CardHolder{width: cardWidth; height: cardHeight}
CardHolder{width: cardWidth; height: cardHeight}
CardHolder{width: cardWidth; height: cardHeight}
}
Card {width: cardWidth; height: cardHeight}
}