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