Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
openSUSE:Leap:15.5:Update
libqt5-qtbase.31637
qapplication-emit-palettechanged.patch
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File qapplication-emit-palettechanged.patch of Package libqt5-qtbase.31637
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 f5644756..979f539f 100644 --- a/src/widgets/kernel/qapplication.cpp +++ b/src/widgets/kernel/qapplication.cpp @@ -1409,6 +1409,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); } }
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor