summaryrefslogtreecommitdiff
blob: d15609d24c75b89cdef38f40a1805d070a9a3ca5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
Correctly apply selected theme to KDE apps.

https://sourceforge.net/p/qt5ct/tickets/32/

Index: src/qt5ct-qtplugin/qt5ctplatformtheme.cpp
===================================================================
--- a/src/qt5ct-qtplugin/qt5ctplatformtheme.cpp	(revision 368)
+++ b/src/qt5ct-qtplugin/qt5ctplatformtheme.cpp	(revision 369)
@@ -101,9 +101,8 @@

 const QPalette *Qt5CTPlatformTheme::palette(QPlatformTheme::Palette type) const
 {
-    if(m_customPalette && m_usePalette)
-        return m_customPalette;
-    return QPlatformTheme::palette(type);
+    Q_UNUSED(type);
+    return (m_usePalette ? m_customPalette : 0);
 }

 const QFont *Qt5CTPlatformTheme::font(QPlatformTheme::Font type) const