[qet] qet/qet: [4965] Disable High Dpi Scaling

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


Revision: 4965
Author:   scorpio810
Date:     2017-05-18 18:34:37 +0200 (Thu, 18 May 2017)
Log Message:
-----------
Disable High Dpi Scaling

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

Modified: trunk/sources/main.cpp
===================================================================
--- trunk/sources/main.cpp	2017-05-18 01:31:27 UTC (rev 4964)
+++ trunk/sources/main.cpp	2017-05-18 16:34:37 UTC (rev 4965)
@@ -31,8 +31,10 @@
 	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
+#if QT_VERSION >= QT_VERSION_CHECK(5,6,0)
+    QApplication::setAttribute(Qt::AA_DisableHighDpiScaling);
+#else
+    qputenv("QT_DEVICE_PIXEL_RATIO", QByteArray("1"));
+#endif 
 	return(QETApp(argc, argv).exec());
 }


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