From 28b10068a9afe1da4cf4f878a96e1aeb9766e70e Mon Sep 17 00:00:00 2001 From: Bart Ribbers Date: Mon, 2 Mar 2020 13:16:32 +0100 Subject: [PATCH] temp/kdeclarative: fork from Alpine (!1021) Add a patch that fixes an issue with an empty info message being shown on the top of the wifi KCM --- temp/kdeclarative/APKBUILD | 46 +++++++++++++++++ .../respect-header-visibility.patch | 50 +++++++++++++++++++ 2 files changed, 96 insertions(+) create mode 100644 temp/kdeclarative/APKBUILD create mode 100644 temp/kdeclarative/respect-header-visibility.patch diff --git a/temp/kdeclarative/APKBUILD b/temp/kdeclarative/APKBUILD new file mode 100644 index 000000000..079d9060a --- /dev/null +++ b/temp/kdeclarative/APKBUILD @@ -0,0 +1,46 @@ +# Forked to apply Plasma Mobile specific fixes that are not in a release yet +pkgname=kdeclarative +pkgver=5.67.80 +_pkgver=5.67.0 +pkgrel=0 +pkgdesc="Provides integration of QML and KDE Frameworks" +arch="all !armhf" # armhf blocked by qt5-qtdeclarative +url="https://community.kde.org/Frameworks" +license="LGPL-2.1-or-later" +depends_dev="qt5-qtdeclarative-dev kconfig-dev ki18n-dev kiconthemes-dev kio-dev kwidgetsaddons-dev kwindowsystem-dev kglobalaccel-dev kguiaddons-dev kpackage-dev libepoxy-dev" +makedepends="$depends_dev extra-cmake-modules doxygen qt5-qttools-dev" +checkdepends="xvfb-run" +source="https://download.kde.org/stable/frameworks/${pkgver%.*}/kdeclarative-$_pkgver.tar.xz + respect-header-visibility.patch" +subpackages="$pkgname-dev $pkgname-doc $pkgname-lang" +builddir="$srcdir/$pkgname-$_pkgver" + +prepare() { + default_prepare + + mkdir "$builddir"/build +} + +build() { + cd "$builddir"/build + cmake "$builddir" \ + -DCMAKE_BUILD_TYPE=None \ + -DCMAKE_INSTALL_PREFIX=/usr \ + -DCMAKE_INSTALL_LIBDIR=lib \ + -DBUILD_QCH=ON + make +} + +check() { + cd "$builddir"/build + + # quickviewsharedengine requires OpenGL + CTEST_OUTPUT_ON_FAILURE=TRUE xvfb-run ctest -E "quickviewsharedengine" +} + +package() { + cd "$builddir"/build + DESTDIR="$pkgdir" make install +} +sha512sums="0a4eb4c2975c586286fe758c96dc34a3d5aa290c29578b957237602d4ff43a4f4f9423a2e883302e39e4e25029d5ecb18d5d49b8cdebe498b56d13a58c2ae55f kdeclarative-5.67.0.tar.xz +181c6389c7281a850e9db2060d289ebd78ebacdb547d14e82fb37904e92c8bc7e4b3c4e108e252f162ee42cb9010a3476591053f9a80beef10ce83c6cc31c71a respect-header-visibility.patch" diff --git a/temp/kdeclarative/respect-header-visibility.patch b/temp/kdeclarative/respect-header-visibility.patch new file mode 100644 index 000000000..88f4c69b0 --- /dev/null +++ b/temp/kdeclarative/respect-header-visibility.patch @@ -0,0 +1,50 @@ +From 1270e357a96f1e78281c0335b1bd05e5c9c3e3c6 Mon Sep 17 00:00:00 2001 +From: Marco Martin +Date: Mon, 3 Feb 2020 19:32:09 +0100 +Subject: respect header's visibility + +--- + src/qmlcontrols/kcmcontrols/qml/SimpleKCM.qml | 6 ++---- + 1 file changed, 2 insertions(+), 4 deletions(-) + +diff --git a/src/qmlcontrols/kcmcontrols/qml/SimpleKCM.qml b/src/qmlcontrols/kcmcontrols/qml/SimpleKCM.qml +index 97aa1cf..6cfb086 100644 +--- a/src/qmlcontrols/kcmcontrols/qml/SimpleKCM.qml ++++ b/src/qmlcontrols/kcmcontrols/qml/SimpleKCM.qml +@@ -55,7 +55,7 @@ Kirigami.ScrollablePage { + + header: QtControls.Control { + id: headerParent +- visible: false ++ visible: contentItem ? contentItem.visible : false + height: visible ? implicitHeight : 0 + leftPadding: 4 + topPadding: 4 +@@ -65,7 +65,7 @@ Kirigami.ScrollablePage { + + footer: QtControls.Control { + id: footerParent +- visible: false ++ visible: contentItem ? contentItem.visible : false + height: visible ? implicitHeight : 0 + leftPadding: 4 + topPadding: 4 +@@ -79,7 +79,6 @@ Kirigami.ScrollablePage { + + footerParent.contentItem = f + footer = footerParent +- f.visible = true + footer.visible = true + f.parent = footerParent + } +@@ -89,7 +88,6 @@ Kirigami.ScrollablePage { + + headerParent.contentItem = h + header = headerParent +- h.visible = true + header.visible = true + h.parent = headerParent + } +-- +cgit v1.1 +