[qet] [3267] Add autodetection windows version for styles

[ Thread Index | Date Index | More lists.tuxfamily.org/qet Archives ]


Revision: 3267
Author:   scorpio810
Date:     2014-08-11 15:08:43 +0200 (Mon, 11 Aug 2014)
Log Message:
-----------
Add autodetection windows version for styles

Modified Paths:
--------------
    trunk/sources/qetapp.cpp

Modified: trunk/sources/qetapp.cpp
===================================================================
--- trunk/sources/qetapp.cpp	2014-08-10 12:04:17 UTC (rev 3266)
+++ trunk/sources/qetapp.cpp	2014-08-11 13:08:43 UTC (rev 3267)
@@ -937,6 +937,21 @@
 }
 
 /**
+	Autodetec Windows style
+	@param Windows style
+*/
+#ifdef defined(Q_WS_WIN)
+			if ((QSysInfo::WindowsVersion >= QSysInfo::WV_VISTA
+				&& QSysInfo::WindowsVersion < QSysInfo::WV_NT_based))
+				style = QLatin1String("WindowsVista");
+				else if ((QSysInfo::WindowsVersion >= QSysInfo::WV_XP
+				&& QSysInfo::WindowsVersion < QSysInfo::WV_NT_based))
+				style = QLatin1String("WindowsXP");
+			else
+				style = QLatin1String("Windows");                // default styles for Windows
+#endif
+
+/**
 	Change la palette de l'application
 	@param use true pour utiliser les couleurs du systeme, false pour utiliser celles du theme en cours
 */


Mail converted by MHonArc 2.6.19+ http://listengine.tuxfamily.org/