forked from pool/libqt5-qtbase
Accepting request 519305 from KDE:Qt5
- Add patch to fix runtime changes to the palette: * qapplication-emit-palettechanged.patch OBS-URL: https://build.opensuse.org/request/show/519305 OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/libqt5-qtbase?expand=0&rev=65
This commit is contained in:
parent
6ca2a5e8b4
commit
568390e1df
@ -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
|
Thu Aug 24 10:46:39 UTC 2017 - mlin@suse.com
|
||||||
|
|
||||||
|
@ -64,6 +64,8 @@ Patch14: 0001-Fix-at-spi2-build.patch
|
|||||||
Patch15: force-cmake-private-headers.patch
|
Patch15: force-cmake-private-headers.patch
|
||||||
# PATCH-FIX-OPENSUSE
|
# PATCH-FIX-OPENSUSE
|
||||||
Patch16: dont-abort-missing-display.patch
|
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 1000-2000 and above from upstream 5.9 branch #
|
||||||
# patches 2000-3000 and above from upstream 5.10/dev branch #
|
# patches 2000-3000 and above from upstream 5.10/dev branch #
|
||||||
Patch2000: 0001-QSslSocket-OpenSSL-1.1-backend.patch
|
Patch2000: 0001-QSslSocket-OpenSSL-1.1-backend.patch
|
||||||
@ -156,6 +158,7 @@ handling.
|
|||||||
%patch14 -p1
|
%patch14 -p1
|
||||||
%patch15 -p1
|
%patch15 -p1
|
||||||
%patch16 -p1
|
%patch16 -p1
|
||||||
|
%patch17 -p1
|
||||||
%patch2000 -p1
|
%patch2000 -p1
|
||||||
|
|
||||||
# be sure not to use them
|
# be sure not to use them
|
||||||
|
31
qapplication-emit-palettechanged.patch
Normal file
31
qapplication-emit-palettechanged.patch
Normal file
@ -0,0 +1,31 @@
|
|||||||
|
From edc101a8d8adf29dc62dd5b64becaef972a45830 Mon Sep 17 00:00:00 2001
|
||||||
|
From: Kai Uwe Broulik <kde@privat.broulik.de>
|
||||||
|
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
|
||||||
|
|
Loading…
Reference in New Issue
Block a user