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
 // {




Reply via email to