From d023da86399b99d365f1e745fb0d9424afc8194b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Morten=20Johan=20S=C3=B8rvig?= Date: Tue, 4 Feb 2020 17:47:23 +0100 Subject: Add high-dpi auto test MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Use the new screen config feature of the offscreen platform plugin to run tests on virtual screen setup. This has the benefit that we can auto-test the QHighDpiScaling implementation (as well as its usage in QtGui) on any platform with a fixed mock screen setup which does not rely on physical screen configuration. Test the following configurations: - three screens: 96 DPI. (reference) - three screens: 192 DPI - three screens: mixed (high) DPI Change-Id: I2fac889d896cf30ab2a79c306cee22177ad8f4ac Reviewed-by: Morten Johan Sørvig --- tests/auto/gui/kernel/qhighdpi/CMakeLists.txt | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 tests/auto/gui/kernel/qhighdpi/CMakeLists.txt (limited to 'tests/auto/gui/kernel/qhighdpi/CMakeLists.txt') diff --git a/tests/auto/gui/kernel/qhighdpi/CMakeLists.txt b/tests/auto/gui/kernel/qhighdpi/CMakeLists.txt new file mode 100644 index 0000000000..bdd9a5e17f --- /dev/null +++ b/tests/auto/gui/kernel/qhighdpi/CMakeLists.txt @@ -0,0 +1,14 @@ +# Generated from qhighdpi.pro. + +##################################################################### +## tst_qhighdpi Test: +##################################################################### + +qt_internal_add_test(tst_qhighdpi + SOURCES + tst_qhighdpi.cpp + PUBLIC_LIBRARIES + Qt::CorePrivate + Qt::Gui + Qt::GuiPrivate +) -- cgit v1.2.3