Gentoo Archives: gentoo-commits

From: "Justin Lecher (jlec)" <jlec@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in app-office/texmaker/files: texmaker-4.4.1-modern-styles.patch
Date: Wed, 24 Jun 2015 06:29:01
Message-Id: 20150624062853.45497A54@oystercatcher.gentoo.org
1 jlec 15/06/24 06:28:53
2
3 Added: texmaker-4.4.1-modern-styles.patch
4 Log:
5 Add support for multiple styles in Qt5, thanks jorgicio for the patch; http://code.google.com/p/texmaker/issues/detail?id=1511
6
7 (Portage version: 2.2.20/cvs/Linux x86_64, signed Manifest commit with key E9402A79B03529A2!)
8
9 Revision Changes Path
10 1.1 app-office/texmaker/files/texmaker-4.4.1-modern-styles.patch
11
12 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-office/texmaker/files/texmaker-4.4.1-modern-styles.patch?rev=1.1&view=markup
13 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-office/texmaker/files/texmaker-4.4.1-modern-styles.patch?rev=1.1&content-type=text/plain
14
15 Index: texmaker-4.4.1-modern-styles.patch
16 ===================================================================
17 --- a/texmaker.cpp 2014-11-26 09:06:56.000000000 -0300
18 +++ b/texmaker.cpp 2015-06-19 20:49:58.801377000 -0300
19 @@ -4451,7 +4451,12 @@
20 #if (QT_VERSION >= QT_VERSION_CHECK(5, 0, 0))
21 if (modern_style)
22 {
23 -qApp->setStyle(new ManhattanStyle(QLatin1String("fusion")));
24 + if(desktop_env == 1){
25 + if (styles.contains("GTK+")) qApp->setStyle(new ManhattanStyle(QLatin1String("gtkstyle")));
26 + else if (styles.contains("Windows")) qApp->setStyle(new ManhattanStyle(QLatin1String("windows")));
27 + else qApp->setStyle(new ManhattanStyle(QLatin1String("fusion")));
28 + }
29 + else qApp->setStyle(new ManhattanStyle(QLatin1String("fusion")));
30 }
31 // else
32 // {