From 9d2b43de19eebc836683e00ca0516a59cb6abe5d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tor=20Arne=20Vestb=C3=B8?= Date: Thu, 27 Aug 2020 17:29:14 +0200 Subject: Use build-system to declare tests that are low-DPI Change-Id: I6da7204683b3c46232cfc542ed5e28131a82e87d Reviewed-by: Volker Hilsheimer --- src/testlib/qtest.h | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'src/testlib/qtest.h') diff --git a/src/testlib/qtest.h b/src/testlib/qtest.h index cd8bd713f7..935fbf9b05 100644 --- a/src/testlib/qtest.h +++ b/src/testlib/qtest.h @@ -64,6 +64,10 @@ #include #include +#if defined(TESTCASE_LOWDPI) +#include +#endif + #include #include #include @@ -461,6 +465,7 @@ bool compareSequence(ActualIterator actualIt, ActualIterator actualEnd, #if defined(TESTCASE_LOWDPI) void disableHighDpi() { + QCoreApplication::setAttribute(Qt::AA_DisableHighDpiScaling); QCoreApplication::setAttribute(Qt::AA_UseHighDpiPixmaps, false); } Q_CONSTRUCTOR_FUNCTION(disableHighDpi); -- cgit v1.2.3