diff options
author | Yen-Chin Lee <coldnew.tw@gmail.com> | 2014-07-23 21:44:21 +0800 |
---|---|---|
committer | Martin Jansa <Martin.Jansa@gmail.com> | 2014-07-23 16:35:52 +0200 |
commit | 6ce50bf97b3f3409c1dddb8d5e106e599d18e69a (patch) | |
tree | 508945b138d9e66805bd3b6b4773fb53d12c119d /recipes-qt/examples/cinematicexperience | |
parent | 5111e23ae280756ff7fe7838d3b26aa66912c9ef (diff) |
cinematicexperience: fix qt5.3 compatibility
cinematicexperience will run failed on Qt5.3.0 and Qt5.3.1, error message
as below
------------------------------------------------------------
Qt5_CinematicExperience.qml:26:5: Type MainView unavailable
MainView {
^
/content/MainView.qml:241:9: Type SettingsView unavailable
SettingsView {
^
/content/SettingsView.qml:88:13: Type Switch unavailable
Switch {
^
/content/Switch.qml:9:21: Cannot assign a value to a signal (expecting a script to be run)
property string onText: "On"
^
------------------------------------------------------------
This patch fix this issue and make cinematicexperience can run on qt5.3.
ref: http://wickwire2099.blogspot.tw/2014/05/qt-530-qt5-cinematic-experience.html
Signed-off-by: Yen-Chin Lee <coldnew.tw@gmail.com>
Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
Diffstat (limited to 'recipes-qt/examples/cinematicexperience')
-rw-r--r-- | recipes-qt/examples/cinematicexperience/fix_qt5_3_compatibility.patch | 48 |
1 files changed, 48 insertions, 0 deletions
diff --git a/recipes-qt/examples/cinematicexperience/fix_qt5_3_compatibility.patch b/recipes-qt/examples/cinematicexperience/fix_qt5_3_compatibility.patch new file mode 100644 index 00000000..fc132ecc --- /dev/null +++ b/recipes-qt/examples/cinematicexperience/fix_qt5_3_compatibility.patch @@ -0,0 +1,48 @@ +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 { |