new/yocto/meta-qt5/recipes-qt/examples/cinematicexperience/fix_qt5_3_compatibility.patch
2025-05-10 21:58:58 +08:00

53 lines
1.7 KiB
Diff

Upstream-Status: Pending
Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
Index: Qt5_CinematicExperience_rpi_1.0/content/SettingsView.qml
===================================================================
--- Qt5_CinematicExperience_rpi_1.0.orig/content/SettingsView.qml
+++ Qt5_CinematicExperience_rpi_1.0/content/SettingsView.qml
@@ -127,8 +127,8 @@ Item {
Switch {
text: "Do you l-o-v-e colors?"
checked: settings.showColors
- onText: "Yes"
- offText: "No!"
+ textON: "Yes"
+ textOFF: "No!"
onCheckedChanged: {
settings.showColors = checked;
}
Index: Qt5_CinematicExperience_rpi_1.0/content/Switch.qml
===================================================================
--- Qt5_CinematicExperience_rpi_1.0.orig/content/Switch.qml
+++ Qt5_CinematicExperience_rpi_1.0/content/Switch.qml
@@ -6,8 +6,8 @@ Item {
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
@@ -120,7 +120,7 @@ Item {
color: "#000000"
font.pixelSize: 18
font.bold: true
- text: onText
+ text: textON
}
Text {
anchors.verticalCenter: parent.verticalCenter
@@ -129,7 +129,7 @@ Item {
color: "#ffffff"
font.pixelSize: 18
font.bold: true
- text: offText
+ text: textOFF
}
Image {