1 |
commit: 515573c7fc6890224549dfdc3788c23f5ecb6ab6 |
2 |
Author: Ilya Tumaykin <itumaykin <AT> gmail <DOT> com> |
3 |
AuthorDate: Fri Jan 27 19:31:53 2017 +0000 |
4 |
Commit: Michael Palimaka <kensington <AT> gentoo <DOT> org> |
5 |
CommitDate: Sun Jan 29 16:52:00 2017 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=515573c7 |
7 |
|
8 |
x11-misc/qt5ct: correctly apply KDE styles |
9 |
|
10 |
Package-Manager: Portage-2.3.3, Repoman-2.3.1 |
11 |
|
12 |
x11-misc/qt5ct/files/qt5ct-0.29-fix-kde-styles.patch | 20 ++++++++++++++++++++ |
13 |
.../{qt5ct-0.29.ebuild => qt5ct-0.29-r1.ebuild} | 2 ++ |
14 |
2 files changed, 22 insertions(+) |
15 |
|
16 |
diff --git a/x11-misc/qt5ct/files/qt5ct-0.29-fix-kde-styles.patch b/x11-misc/qt5ct/files/qt5ct-0.29-fix-kde-styles.patch |
17 |
new file mode 100644 |
18 |
index 00000000..d15609d |
19 |
--- /dev/null |
20 |
+++ b/x11-misc/qt5ct/files/qt5ct-0.29-fix-kde-styles.patch |
21 |
@@ -0,0 +1,20 @@ |
22 |
+Correctly apply selected theme to KDE apps. |
23 |
+ |
24 |
+https://sourceforge.net/p/qt5ct/tickets/32/ |
25 |
+ |
26 |
+Index: src/qt5ct-qtplugin/qt5ctplatformtheme.cpp |
27 |
+=================================================================== |
28 |
+--- a/src/qt5ct-qtplugin/qt5ctplatformtheme.cpp (revision 368) |
29 |
++++ b/src/qt5ct-qtplugin/qt5ctplatformtheme.cpp (revision 369) |
30 |
+@@ -101,9 +101,8 @@ |
31 |
+ |
32 |
+ const QPalette *Qt5CTPlatformTheme::palette(QPlatformTheme::Palette type) const |
33 |
+ { |
34 |
+- if(m_customPalette && m_usePalette) |
35 |
+- return m_customPalette; |
36 |
+- return QPlatformTheme::palette(type); |
37 |
++ Q_UNUSED(type); |
38 |
++ return (m_usePalette ? m_customPalette : 0); |
39 |
+ } |
40 |
+ |
41 |
+ const QFont *Qt5CTPlatformTheme::font(QPlatformTheme::Font type) const |
42 |
|
43 |
diff --git a/x11-misc/qt5ct/qt5ct-0.29.ebuild b/x11-misc/qt5ct/qt5ct-0.29-r1.ebuild |
44 |
similarity index 95% |
45 |
rename from x11-misc/qt5ct/qt5ct-0.29.ebuild |
46 |
rename to x11-misc/qt5ct/qt5ct-0.29-r1.ebuild |
47 |
index c449014..2563ebe 100644 |
48 |
--- a/x11-misc/qt5ct/qt5ct-0.29.ebuild |
49 |
+++ b/x11-misc/qt5ct/qt5ct-0.29-r1.ebuild |
50 |
@@ -25,6 +25,8 @@ DEPEND="${RDEPEND} |
51 |
dev-qt/linguist-tools:5 |
52 |
" |
53 |
|
54 |
+PATCHES=( "${FILESDIR}/${P}-fix-kde-styles.patch" ) |
55 |
+ |
56 |
src_configure() { |
57 |
eqmake5 DEFINES="$(usex systray '' QT_NO_SYSTEMTRAYICON)" ${PN}.pro |
58 |
} |