[qet] [4384] Enable High Dpi Scaling for QT_VERSION >= 5.6.0

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


Revision: 4384
Author:   scorpio810
Date:     2016-03-18 17:34:55 +0100 (Fri, 18 Mar 2016)
Log Message:
-----------
Enable High Dpi Scaling for QT_VERSION >= 5.6.0

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

Modified: trunk/sources/main.cpp
===================================================================
--- trunk/sources/main.cpp	2016-03-18 08:40:45 UTC (rev 4383)
+++ trunk/sources/main.cpp	2016-03-18 16:34:55 UTC (rev 4384)
@@ -31,5 +31,8 @@
 	QCoreApplication::setOrganizationDomain("qelectrotech.org");
 	QCoreApplication::setApplicationName("QElectroTech");
 		//Creation and execution of the application
+#if (QT_VERSION >= QT_VERSION_CHECK(5, 6, 0))
+QCoreApplication::setAttribute(Qt::AA_EnableHighDpiScaling);
+#endif
 	return(QETApp(argc, argv).exec());
 }


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