From b18636bdfefcd69fc0ae6563f1036aebf0657d69 Mon Sep 17 00:00:00 2001 From: scorpio810 Date: Thu, 18 May 2017 01:31:27 +0000 Subject: [PATCH] Revert git-svn-id: svn+ssh://svn.tuxfamily.org/svnroot/qet/qet/trunk@4964 bfdf4180-ca20-0410-9c96-a3a8aa849046 --- sources/main.cpp | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/sources/main.cpp b/sources/main.cpp index fe4272275..d9fc1bcc4 100644 --- a/sources/main.cpp +++ b/sources/main.cpp @@ -31,10 +31,8 @@ int main(int argc, char **argv) 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); -#else - qputenv("QT_DEVICE_PIXEL_RATIO", QByteArray("1")); -#endif // QT_VERSION +#if (QT_VERSION >= QT_VERSION_CHECK(5, 6, 0)) +QCoreApplication::setAttribute(Qt::AA_EnableHighDpiScaling); +#endif return(QETApp(argc, argv).exec()); }