projects
/
qzeecontrol
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
5ff499f
)
Make use of new button properties for setting label color.
author
Ruediger Gad
<rgad@fb2.fh-frankfurt.de>
Thu, 12 Apr 2012 11:47:05 +0000
(13:47 +0200)
committer
Ruediger Gad
<rgad@fb2.fh-frankfurt.de>
Thu, 12 Apr 2012 11:47:05 +0000
(13:47 +0200)
qml/QZeeControl/MainPage.qml
patch
|
blob
|
history
diff --git
a/qml/QZeeControl/MainPage.qml
b/qml/QZeeControl/MainPage.qml
index
ef75026
..
3188ac7
100644
(file)
--- a/
qml/QZeeControl/MainPage.qml
+++ b/
qml/QZeeControl/MainPage.qml
@@
-62,22
+62,22
@@
Page {
Label{
id: labelA
text: "A"
Label{
id: labelA
text: "A"
- color: "blue"
+ color: btConn.a ? "red" : "blue"
}
Label{
id: labelB
text: "B"
}
Label{
id: labelB
text: "B"
- color: "blue"
+ color: btConn.b ? "red" : "blue"
}
Label{
id: labelC
text: "C"
}
Label{
id: labelC
text: "C"
- color: "blue"
+ color: btConn.c ? "red" : "blue"
}
Label{
id: labelD
text: "D"
}
Label{
id: labelD
text: "D"
- color: "blue"
+ color: btConn.d ? "red" : "blue"
}
}
}
}
@@
-163,10
+163,6
@@
Page {
onButtonsChanged: {
console.log("Buttons changed. A: " + a + " B: " + b + " C: " + c + " D: " + d)
onButtonsChanged: {
console.log("Buttons changed. A: " + a + " B: " + b + " C: " + c + " D: " + d)
- labelA.color = a ? "red" : "blue"
- labelB.color = b ? "red" : "blue"
- labelC.color = c ? "red" : "blue"
- labelD.color = d ? "red" : "blue"
}
onAChanged: {
}
onAChanged: {