From 480cdca0e9a80eb700b4965d4d6b906b20f97860 Mon Sep 17 00:00:00 2001 From: Dirk Hohndel Date: Wed, 18 Nov 2020 21:26:48 +0000 Subject: 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 --- scripts/mobilecomponents.sh | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'scripts') 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 -- cgit v1.2.3-70-g09d2