x11-misc/qt5ct: correctly apply KDE styles
[gentoo.git] / x11-misc / qt5ct / files / qt5ct-0.29-fix-kde-styles.patch
1 Correctly apply selected theme to KDE apps.
2
3 https://sourceforge.net/p/qt5ct/tickets/32/
4
5 Index: src/qt5ct-qtplugin/qt5ctplatformtheme.cpp
6 ===================================================================
7 --- a/src/qt5ct-qtplugin/qt5ctplatformtheme.cpp (revision 368)
8 +++ b/src/qt5ct-qtplugin/qt5ctplatformtheme.cpp (revision 369)
9 @@ -101,9 +101,8 @@
10
11  const QPalette *Qt5CTPlatformTheme::palette(QPlatformTheme::Palette type) const
12  {
13 -    if(m_customPalette && m_usePalette)
14 -        return m_customPalette;
15 -    return QPlatformTheme::palette(type);
16 +    Q_UNUSED(type);
17 +    return (m_usePalette ? m_customPalette : 0);
18  }
19
20  const QFont *Qt5CTPlatformTheme::font(QPlatformTheme::Font type) const