summaryrefslogtreecommitdiffstats
path: root/src/testlib
diff options
context:
space:
mode:
Diffstat (limited to 'src/testlib')
-rw-r--r--src/testlib/doc/src/qttestlib-manual.qdoc3
-rw-r--r--src/testlib/qtest.h2
2 files changed, 2 insertions, 3 deletions
diff --git a/src/testlib/doc/src/qttestlib-manual.qdoc b/src/testlib/doc/src/qttestlib-manual.qdoc
index 8ff82ba28f..87ac565278 100644
--- a/src/testlib/doc/src/qttestlib-manual.qdoc
+++ b/src/testlib/doc/src/qttestlib-manual.qdoc
@@ -129,8 +129,7 @@
Finally, if the test class has a static public \c{void initMain()} method,
it is called by the QTEST_MAIN macros before the QApplication object
- is instantiated. For example, this allows for setting application
- attributes like Qt::AA_DisableHighDpiScaling. This was added in 5.14.
+ is instantiated. This was added in 5.14.
For more examples, refer to the \l{Qt Test Tutorial}.
diff --git a/src/testlib/qtest.h b/src/testlib/qtest.h
index fa439130d9..6c80ff3a4d 100644
--- a/src/testlib/qtest.h
+++ b/src/testlib/qtest.h
@@ -465,7 +465,7 @@ bool compareSequence(ActualIterator actualIt, ActualIterator actualEnd,
#if defined(TESTCASE_LOWDPI)
void disableHighDpi()
{
- QCoreApplication::setAttribute(Qt::AA_DisableHighDpiScaling);
+ qputenv("QT_ENABLE_HIGHDPI_SCALING", "0");
}
Q_CONSTRUCTOR_FUNCTION(disableHighDpi);
#endif