diff options
author | Tim Schumacher | 2020-06-18 20:54:50 +0200 |
---|---|---|
committer | Tim Schumacher | 2020-06-18 20:54:50 +0200 |
commit | a2699833bb52ea4c57137102b915be6d1345fc68 (patch) | |
tree | 52c901729c902fe753735b8069bdc5472b906516 /fix-qt-theme.patch | |
parent | 089a337a9f75a750aec95358a552a12a497fe22a (diff) | |
download | aur-a2699833bb52ea4c57137102b915be6d1345fc68.tar.gz |
Fix Qt 5.15 issues
Diffstat (limited to 'fix-qt-theme.patch')
-rw-r--r-- | fix-qt-theme.patch | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/fix-qt-theme.patch b/fix-qt-theme.patch new file mode 100644 index 000000000000..fe0510b3f85e --- /dev/null +++ b/fix-qt-theme.patch @@ -0,0 +1,31 @@ +From 0817e3933cf8a4122cbba944ff5d32a8cdb78f9b Mon Sep 17 00:00:00 2001 +From: Mick Sayson <mick@sayson.com> +Date: Fri, 12 Jun 2020 19:52:50 -0700 +Subject: [PATCH] Fix default palette application on Qt 5.15.0 + +--- + src/app/Application.cpp | 4 ++++ + 1 file changed, 4 insertions(+) + +diff --git a/src/app/Application.cpp b/src/app/Application.cpp +index 7a54b89..143dc05 100644 +--- a/src/app/Application.cpp ++++ b/src/app/Application.cpp +@@ -27,6 +27,7 @@ + #include <QNetworkReply> + #include <QOperatingSystemVersion> + #include <QSettings> ++#include <QStyle> + #include <QSysInfo> + #include <QTimer> + #include <QTranslator> +@@ -187,6 +188,9 @@ Application::Application(int &argc, char **argv, bool haltOnParseError) + // Enable system proxy auto-detection. + QNetworkProxyFactory::setUseSystemConfiguration(true); + ++ // Set default pallete. Pre Qt 5.15.0 this should be the same as the default ++ QApplication::setPalette(QApplication::style()->standardPalette()); ++ + // Do platform-specific initialization. + #if defined(Q_OS_MAC) + // Register service on Mac. |