[qet] qet/qet: [4966] Re enable HDPI for macOS

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


Revision: 4966
Author:   scorpio810
Date:     2017-05-19 02:42:46 +0200 (Fri, 19 May 2017)
Log Message:
-----------
Re enable HDPI for macOS

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

Modified: trunk/sources/main.cpp
===================================================================
--- trunk/sources/main.cpp	2017-05-18 16:34:37 UTC (rev 4965)
+++ trunk/sources/main.cpp	2017-05-19 00:42:46 UTC (rev 4966)
@@ -31,10 +31,15 @@
 	QCoreApplication::setOrganizationDomain("qelectrotech.org");
 	QCoreApplication::setApplicationName("QElectroTech");
 		//Creation and execution of the application
-#if QT_VERSION >= QT_VERSION_CHECK(5,6,0)
-    QApplication::setAttribute(Qt::AA_DisableHighDpiScaling);
+		//HighDPI
+#if QT_VERSION >= QT_VERSION_CHECK (5, 6, 0)
+#if defined Q_OS_MAC
+    QApplication::setAttribute (Qt::AA_EnableHighDpiScaling);
+#elif !defined(Q_OS_MAC)
+    QApplication::setAttribute (Qt::AA_DisableHighDpiScaling);
 #else
     qputenv("QT_DEVICE_PIXEL_RATIO", QByteArray("1"));
-#endif 
+#endif
+#endif
 	return(QETApp(argc, argv).exec());
 }


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