summaryrefslogtreecommitdiffstats
path: root/src/testlib/qtest.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/testlib/qtest.h')
-rw-r--r--src/testlib/qtest.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/testlib/qtest.h b/src/testlib/qtest.h
index 0fbef0b7c2..cceefde84a 100644
--- a/src/testlib/qtest.h
+++ b/src/testlib/qtest.h
@@ -319,6 +319,14 @@ bool compareSequence(ActualIterator actualIt, ActualIterator actualEnd,
return compare_helper(isOk, msg, nullptr, nullptr, actual, expected, file, line);
}
+#if defined(TESTCASE_LOWDPI)
+void disableHighDpi()
+{
+ QCoreApplication::setAttribute(Qt::AA_UseHighDpiPixmaps, false);
+}
+Q_CONSTRUCTOR_FUNCTION(disableHighDpi);
+#endif
+
} // namespace Internal
template <typename T>