summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar Dirk Hohndel <dirk@hohndel.org>2020-11-18 21:26:48 +0000
committerGravatar Dirk Hohndel <dirk@hohndel.org>2020-11-19 17:18:33 -0800
commit480cdca0e9a80eb700b4965d4d6b906b20f97860 (patch)
treedd4e3aea0511f1f8c78935e8f50db8bda318d619
parent47c837cc426aa62cc41317132a3ec2134cbf3434 (diff)
downloadsubsurface-480cdca0e9a80eb700b4965d4d6b906b20f97860.tar.gz
mobile: hack around error with readonly properties
This used to work, and still works with Qt 5.15 on the desktop, but on Android we get a fatal error trying to open the app. So let's just add another hack on top of all the other hacks we already have. Eventually we need to bite the bullet and update Kirigami. I just wish that wasn't such a pain. Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
-rwxr-xr-xscripts/mobilecomponents.sh6
1 files changed, 6 insertions, 0 deletions
diff --git a/scripts/mobilecomponents.sh b/scripts/mobilecomponents.sh
index faff91bde..64538c44b 100755
--- a/scripts/mobilecomponents.sh
+++ b/scripts/mobilecomponents.sh
@@ -84,6 +84,12 @@ sed -i -e "s/width: backgroundRect/enabled: root.enabled; width: backgroundRe
patch -p0 < $SRC/subsurface/scripts/kirigami.diff
+# with Qt5.15 the readonly properties are failing on Android. So let's
+# patch those out
+for qml in $(grep -l -R readonly\ .); do
+ sed -i -e "s/readonly //" $qml
+done
+
popd
echo org.kde.plasma.kirigami synced from upstream