0001-Fix-execution-problem-with-Qt5.3.patch 1.8 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364
  1. From 9b045ee7988daf3bb4c7cbe1ed1b9d744820e82b Mon Sep 17 00:00:00 2001
  2. From: Pierre Le Magourou <pierre.lemagourou@openwide.fr>
  3. Date: Mon, 15 Dec 2014 11:54:51 +0100
  4. Subject: [PATCH] Fix execution problem with Qt5.3.
  5. This patch has been inspired from Open Embedded meta-qt5.
  6. Signed-off-by: Pierre Le Magourou <pierre.lemagourou@openwide.fr>
  7. ---
  8. content/SettingsView.qml | 4 ++--
  9. content/Switch.qml | 8 ++++----
  10. 2 files changed, 6 insertions(+), 6 deletions(-)
  11. diff --git a/content/SettingsView.qml b/content/SettingsView.qml
  12. index 7944803..a0ddcc8 100644
  13. --- a/content/SettingsView.qml
  14. +++ b/content/SettingsView.qml
  15. @@ -127,8 +127,8 @@ Item {
  16. Switch {
  17. text: "Do you l-o-v-e colors?"
  18. checked: settings.showColors
  19. - onText: "Yes"
  20. - offText: "No!"
  21. + textON: "Yes"
  22. + textOFF: "No!"
  23. onCheckedChanged: {
  24. settings.showColors = checked;
  25. }
  26. diff --git a/content/Switch.qml b/content/Switch.qml
  27. index 967c03f..66955fc 100644
  28. --- a/content/Switch.qml
  29. +++ b/content/Switch.qml
  30. @@ -6,8 +6,8 @@ Item {
  31. property alias text: textItem.text
  32. property bool checked: false
  33. - property string onText: "On"
  34. - property string offText: "Off"
  35. + property string textON: "On"
  36. + property string textOFF: "Off"
  37. QtObject {
  38. id: priv
  39. @@ -120,7 +120,7 @@ Item {
  40. color: "#000000"
  41. font.pixelSize: 18
  42. font.bold: true
  43. - text: onText
  44. + text: textON
  45. }
  46. Text {
  47. anchors.verticalCenter: parent.verticalCenter
  48. @@ -129,7 +129,7 @@ Item {
  49. color: "#ffffff"
  50. font.pixelSize: 18
  51. font.bold: true
  52. - text: offText
  53. + text: textOFF
  54. }
  55. Image {
  56. --
  57. 2.1.3