diff options
author | Neena Busireddy <neena.busireddy@freescale.com> | 2015-04-08 15:30:47 -0500 |
---|---|---|
committer | Otavio Salvador <otavio@ossystems.com.br> | 2015-04-15 17:37:57 -0300 |
commit | 831c66e4c2c1cdf8656723de1bd4171e2db78015 (patch) | |
tree | 23e9e2f3ca7f642ef9923ce80613973efb5ae0ad | |
parent | 87235825459d376bf4537c9523eb2496e15893aa (diff) | |
download | meta-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>
-rw-r--r-- | recipes-qt/examples/qt5nmapper/change-property-string.patch | 26 | ||||
-rw-r--r-- | recipes-qt/examples/qt5nmapper_1.0.bb | 3 |
2 files changed, 28 insertions, 1 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 @@ | |||
1 | qt5nmapper: Change property string to onTextString | ||
2 | |||
3 | Upstream-Status: Pending | ||
4 | |||
5 | diff --git a/content_org/Switch.qml b/content/Switch.qml | ||
6 | index 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 | ||
diff --git a/recipes-qt/examples/qt5nmapper_1.0.bb b/recipes-qt/examples/qt5nmapper_1.0.bb index 9b1b7278..77cb067c 100644 --- a/recipes-qt/examples/qt5nmapper_1.0.bb +++ b/recipes-qt/examples/qt5nmapper_1.0.bb | |||
@@ -6,7 +6,8 @@ LIC_FILES_CHKSUM = "file://README;beginline=47;endline=58;md5=9fb5bf76d564bc5381 | |||
6 | 6 | ||
7 | DEPENDS = "qtdeclarative qtgraphicaleffects" | 7 | DEPENDS = "qtdeclarative qtgraphicaleffects" |
8 | 8 | ||
9 | SRC_URI = "http://quitcoding.com/download/Qt5_NMapper_1.0.tgz" | 9 | SRC_URI = "http://quitcoding.com/download/Qt5_NMapper_1.0.tgz \ |
10 | file://change-property-string.patch" | ||
10 | SRC_URI[md5sum] = "dafc425280144d8e286788e75a0dba0f" | 11 | SRC_URI[md5sum] = "dafc425280144d8e286788e75a0dba0f" |
11 | SRC_URI[sha256sum] = "607fbf4c448f00d3c563f9ef8a582bcb6e8fe550e80b56bf8d9127a417faa53b" | 12 | SRC_URI[sha256sum] = "607fbf4c448f00d3c563f9ef8a582bcb6e8fe550e80b56bf8d9127a417faa53b" |
12 | 13 | ||