From 29ebf3517fd0ed5b6ce16b129b65c8075cb15ff5 Mon Sep 17 00:00:00 2001 From: John Date: Sat, 20 Jun 2020 19:15:09 +0200 Subject: [PATCH] lxqt-qtplugin: update to 0.15.1. this fixes some issues with qt5.15 --- ...2d94b4c9de74b5bcf27fae2d10e6b2b11caf.patch | 30 +++++++++++++++++++ srcpkgs/lxqt-qtplugin/template | 4 +-- 2 files changed, 32 insertions(+), 2 deletions(-) create mode 100644 srcpkgs/lxqt-qtplugin/patches/8cc32d94b4c9de74b5bcf27fae2d10e6b2b11caf.patch diff --git a/srcpkgs/lxqt-qtplugin/patches/8cc32d94b4c9de74b5bcf27fae2d10e6b2b11caf.patch b/srcpkgs/lxqt-qtplugin/patches/8cc32d94b4c9de74b5bcf27fae2d10e6b2b11caf.patch new file mode 100644 index 00000000000..f993fc3fbad --- /dev/null +++ b/srcpkgs/lxqt-qtplugin/patches/8cc32d94b4c9de74b5bcf27fae2d10e6b2b11caf.patch @@ -0,0 +1,30 @@ +From 8cc32d94b4c9de74b5bcf27fae2d10e6b2b11caf Mon Sep 17 00:00:00 2001 +From: Tsu Jan +Date: Mon, 1 Jun 2020 22:20:22 +0430 +Subject: [PATCH] Do not reset widget palettes on changing style +MIME-Version: 1.0 +Content-Type: text/plain; charset=UTF-8 +Content-Transfer-Encoding: 8bit + +Generally, resetting a widget's palette from outside its code is a bad practice because the palette may have been changed for a reason. + +If the custom palette of a widget needs an update when the style changes, the program itself is responsible for that; otherwise, the program has a bug — as in libfm-qt's places view (which I'll fix soon) and Dolphin's main view (which will never be fixed). +--- + src/lxqtplatformtheme.cpp | 4 ---- + 1 file changed, 4 deletions(-) + +diff --git a/src/lxqtplatformtheme.cpp b/src/lxqtplatformtheme.cpp +index 2df9f8f..76f6483 100644 +--- src/lxqtplatformtheme.cpp ++++ src/lxqtplatformtheme.cpp +@@ -234,10 +234,6 @@ void LXQtPlatformTheme::onSettingsChanged() { + // Qt5 added a QEvent::ThemeChange event. + QEvent event(QEvent::ThemeChange); + QApplication::sendEvent(widget, &event); +- // Also, set the palette because it may not be updated for some widgets. +- // WARNING: The app palette should be used, not LXQtPalette_, because +- // some widget styles have their own palettes. +- widget->setPalette(QApplication::palette()); + } + } + diff --git a/srcpkgs/lxqt-qtplugin/template b/srcpkgs/lxqt-qtplugin/template index b2405884a05..3f5e8468d0c 100644 --- a/srcpkgs/lxqt-qtplugin/template +++ b/srcpkgs/lxqt-qtplugin/template @@ -1,6 +1,6 @@ # Template file for 'lxqt-qtplugin' pkgname=lxqt-qtplugin -version=0.15.0 +version=0.15.1 revision=1 build_style=cmake hostmakedepends="lxqt-build-tools qt5-qmake qt5-host-tools libfm-devel" @@ -10,4 +10,4 @@ maintainer="Orphaned " license="LGPL-2.1-or-later" homepage="https://lxqt.org/" distfiles="https://github.com/lxqt/lxqt-qtplugin/releases/download/${version}/lxqt-qtplugin-${version}.tar.xz" -checksum=43595276881f8e00d689d0c16cf6238a33f0c0a0bba97cc5ebff513457eb86ee +checksum=daef8d0ad3c310e0ff008769e8f196409b88e1f006b9207ef7fd006b47bd759e