mirror of
https://github.com/gentoo-mirror/gentoo.git
synced 2026-09-24 04:59:14 -07:00
x11-misc/qt5ct: correctly apply KDE styles
Package-Manager: Portage-2.3.3, Repoman-2.3.1
This commit is contained in:
committed by
Michael Palimaka
parent
b71f5b1adc
commit
515573c7fc
20
x11-misc/qt5ct/files/qt5ct-0.29-fix-kde-styles.patch
Normal file
20
x11-misc/qt5ct/files/qt5ct-0.29-fix-kde-styles.patch
Normal file
@@ -0,0 +1,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
|
||||
@@ -25,6 +25,8 @@ DEPEND="${RDEPEND}
|
||||
dev-qt/linguist-tools:5
|
||||
"
|
||||
|
||||
PATCHES=( "${FILESDIR}/${P}-fix-kde-styles.patch" )
|
||||
|
||||
src_configure() {
|
||||
eqmake5 DEFINES="$(usex systray '' QT_NO_SYSTEMTRAYICON)" ${PN}.pro
|
||||
}
|
||||
Reference in New Issue
Block a user