summaryrefslogtreecommitdiffstats
path: root/recipes-qt/examples/qt5nmapper/change-property-string.patch
diff options
context:
space:
mode:
authorNeena Busireddy <neena.busireddy@freescale.com>2015-04-08 15:30:47 -0500
committerOtavio Salvador <otavio@ossystems.com.br>2015-04-15 17:37:57 -0300
commit831c66e4c2c1cdf8656723de1bd4171e2db78015 (patch)
tree23e9e2f3ca7f642ef9923ce80613973efb5ae0ad /recipes-qt/examples/qt5nmapper/change-property-string.patch
parent87235825459d376bf4537c9523eb2496e15893aa (diff)
downloadmeta-qt5-831c66e4c2c1cdf8656723de1bd4171e2db78015.tar.gz
qt5nmapper: Fix compatibility issue
qt5nmapper app fails to run with the following error: file:///usr/share/qt5nmapper-1.0/Qt5_NMapper.qml:34:5: Type Panel unavailable Panel { ^ file:///usr/share/qt5nmapper-1.0/content/Panel.qml:118:9: Type Switch unavailable Switch { ^ file:///usr/share/qt5nmapper-1.0/content/Switch.qml:8:21: Cannot assign a value to a signal (expecting a script to be run) property string onText: "On" This patch changes the string from onText to onTextstring which was introduced with Qt 5.3 Signed-off-by: Neena Busireddy <neena.busireddy@freescale.com> Signed-off-by: Otavio Salvador <otavio@ossystems.com.br>
Diffstat (limited to 'recipes-qt/examples/qt5nmapper/change-property-string.patch')
-rw-r--r--recipes-qt/examples/qt5nmapper/change-property-string.patch26
1 files changed, 26 insertions, 0 deletions
diff --git a/recipes-qt/examples/qt5nmapper/change-property-string.patch b/recipes-qt/examples/qt5nmapper/change-property-string.patch
new file mode 100644
index 00000000..dae2fdcc
--- /dev/null
+++ b/recipes-qt/examples/qt5nmapper/change-property-string.patch
@@ -0,0 +1,26 @@
1qt5nmapper: Change property string to onTextString
2
3Upstream-Status: Pending
4
5diff --git a/content_org/Switch.qml b/content/Switch.qml
6index 08a2cba..a8b8b26 100644
7--- a/content_org/Switch.qml
8+++ b/content/Switch.qml
9@@ -5,7 +5,7 @@ Item {
10
11 property alias text: textItem.text
12 property bool checked: false
13- property string onText: "On"
14+ property string onTextString: "On"
15 property string offText: "Off"
16
17 QtObject {
18@@ -76,7 +76,7 @@ Item {
19 color: "#000000"
20 font.pixelSize: 18
21 font.bold: true
22- text: onText
23+ text: onTextString
24 }
25 Text {
26 anchors.verticalCenter: parent.verticalCenter