Change-Id: Iac14cb5ce809355e13a435447c9ce90909e769d2
Signed-off-by: Philippe Coval <philippe.coval@open.eurogiciel.org>
Switch {
text: "Do you l-o-v-e colors?"
checked: settings.showColors
- onText: "Yes"
- offText: "No!"
+ textOn: "Yes"
+ textOff: "No!"
onCheckedChanged: {
settings.showColors = checked;
}
property alias text: textItem.text
property bool checked: false
- property string onText: "On"
- property string offText: "Off"
+ property string textOn: "On"
+ property string textOff: "Off"
QtObject {
id: priv
color: "#000000"
font.pixelSize: 18
font.bold: true
- text: onText
+ text: textOn
}
Text {
anchors.verticalCenter: parent.verticalCenter
color: "#ffffff"
font.pixelSize: 18
font.bold: true
- text: offText
+ text: textOff
}
Image {