diff --git a/libqt5-qtbase.changes b/libqt5-qtbase.changes index 1fe088b..928fa6f 100644 --- a/libqt5-qtbase.changes +++ b/libqt5-qtbase.changes @@ -1,3 +1,9 @@ +------------------------------------------------------------------- +Tue Aug 29 10:46:47 UTC 2017 - fabian@ritter-vogt.de + +- Add patch to fix runtime changes to the palette: + * qapplication-emit-palettechanged.patch + ------------------------------------------------------------------- Thu Aug 24 10:46:39 UTC 2017 - mlin@suse.com diff --git a/libqt5-qtbase.spec b/libqt5-qtbase.spec index eea6e1f..dce1729 100644 --- a/libqt5-qtbase.spec +++ b/libqt5-qtbase.spec @@ -64,6 +64,8 @@ Patch14: 0001-Fix-at-spi2-build.patch Patch15: force-cmake-private-headers.patch # PATCH-FIX-OPENSUSE Patch16: dont-abort-missing-display.patch +# PATCH-FIX-UPSTREAM +Patch17: qapplication-emit-palettechanged.patch # patches 1000-2000 and above from upstream 5.9 branch # # patches 2000-3000 and above from upstream 5.10/dev branch # Patch2000: 0001-QSslSocket-OpenSSL-1.1-backend.patch @@ -156,6 +158,7 @@ handling. %patch14 -p1 %patch15 -p1 %patch16 -p1 +%patch17 -p1 %patch2000 -p1 # be sure not to use them diff --git a/qapplication-emit-palettechanged.patch b/qapplication-emit-palettechanged.patch new file mode 100644 index 0000000..414c4de --- /dev/null +++ b/qapplication-emit-palettechanged.patch @@ -0,0 +1,31 @@ +From edc101a8d8adf29dc62dd5b64becaef972a45830 Mon Sep 17 00:00:00 2001 +From: Kai Uwe Broulik +Date: Mon, 9 Jan 2017 15:17:54 +0100 +Subject: [PATCH] QApplication: Emit paletteChanged signal + +This signal was added to QGuiApplication and QGuiApplication::setPalette. +Since this function is static QApplication has its own distinct implementation +which never emitted this signal. This results in items, such as QtQuick +SystemPalette, which listen to paletteChanged to not update when using +a QApplication. + +Change-Id: I2b8108693743ec57934391025424ec9fee1c9c21 +--- + src/widgets/kernel/qapplication.cpp | 1 + + 1 file changed, 1 insertion(+) + +diff --git a/src/widgets/kernel/qapplication.cpp b/src/widgets/kernel/qapplication.cpp +index ef046f3e..045d3f7 100644 +--- a/src/widgets/kernel/qapplication.cpp ++++ b/src/widgets/kernel/qapplication.cpp +@@ -1514,6 +1514,7 @@ void QApplicationPrivate::setPalette_helper(const QPalette &palette, const char* + else + *QApplicationPrivate::set_pal = palette; + QCoreApplication::setAttribute(Qt::AA_SetPalette); ++ emit qApp->paletteChanged(*QApplicationPrivate::set_pal); + } + } + +-- +2.7.4 +