* [gentoo-commits] gentoo-x86 commit in app-office/texmaker/files: texmaker-4.4.1-modern-styles.patch
@ 2015-06-24 6:28 Justin Lecher (jlec)
0 siblings, 0 replies; only message in thread
From: Justin Lecher (jlec) @ 2015-06-24 6:28 UTC (permalink / raw
To: gentoo-commits
jlec 15/06/24 06:28:53
Added: texmaker-4.4.1-modern-styles.patch
Log:
Add support for multiple styles in Qt5, thanks jorgicio for the patch; http://code.google.com/p/texmaker/issues/detail?id=1511
(Portage version: 2.2.20/cvs/Linux x86_64, signed Manifest commit with key E9402A79B03529A2!)
Revision Changes Path
1.1 app-office/texmaker/files/texmaker-4.4.1-modern-styles.patch
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
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
Index: texmaker-4.4.1-modern-styles.patch
===================================================================
--- a/texmaker.cpp 2014-11-26 09:06:56.000000000 -0300
+++ b/texmaker.cpp 2015-06-19 20:49:58.801377000 -0300
@@ -4451,7 +4451,12 @@
#if (QT_VERSION >= QT_VERSION_CHECK(5, 0, 0))
if (modern_style)
{
-qApp->setStyle(new ManhattanStyle(QLatin1String("fusion")));
+ if(desktop_env == 1){
+ if (styles.contains("GTK+")) qApp->setStyle(new ManhattanStyle(QLatin1String("gtkstyle")));
+ else if (styles.contains("Windows")) qApp->setStyle(new ManhattanStyle(QLatin1String("windows")));
+ else qApp->setStyle(new ManhattanStyle(QLatin1String("fusion")));
+ }
+ else qApp->setStyle(new ManhattanStyle(QLatin1String("fusion")));
}
// else
// {
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2015-06-24 6:29 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-06-24 6:28 [gentoo-commits] gentoo-x86 commit in app-office/texmaker/files: texmaker-4.4.1-modern-styles.patch Justin Lecher (jlec)
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox