ceae8cc898d6c9734eb9665ebcf010caf6b09c1e
[packages/trusty/cirros-testvm.git] / cirros-testvm / src-cirros / buildroot-2015.05 / package / qt5cinex / 0001-Fix-execution-problem-with-Qt5.3.patch
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
6 This patch has been inspired from Open Embedded meta-qt5.
7
8 Signed-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
14 diff --git a/content/SettingsView.qml b/content/SettingsView.qml
15 index 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                  }
29 diff --git a/content/Switch.qml b/content/Switch.qml
30 index 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 -- 
63 2.1.3
64