-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathBallsKit.qml
53 lines (47 loc) · 1.17 KB
/
BallsKit.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
import QtQuick 2.0
import "properties.js" as Constants
Item {
id: root
width: 100
height: 100
signal footballClicked;
signal golfballClicked;
signal ironballClicked;
signal cottonballClicked;
Grid{
id: grid
rows: 2; columns: 2; spacing: 4
Ball {
id:footBall
source: Constants.source("football")
text: Constants.text("football")
onClicked:{
root.footballClicked();
}
}
Ball {
id:golfBall
source: Constants.source("golfball")
text: Constants.text("golfball")
onClicked:{
root.golfballClicked();
}
}
Ball {
id:ironBall
source: Constants.source("ironball")
text: Constants.text("ironball")
onClicked:{
root.ironballClicked();
}
}
Ball {
id:cottonBall
source: Constants.source("cottonball")
text: Constants.text("cottonball")
onClicked:{
root.cottonballClicked();
}
}
}
}