From 588213159208c6eabe660cf44569104eb5e0212d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Morten=20Johan=20S=C3=B8rvig?= Date: Wed, 28 Apr 2021 15:50:41 +0200 Subject: Remove setting of Qt 5 high-dpi attributes MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This test is for Qt 6 now. Change-Id: I839c2733d505cb4119b1fe3ad85d3c8d94a6c964 Reviewed-by: Tor Arne Vestbø --- tests/auto/gui/kernel/qhighdpi/tst_qhighdpi.cpp | 10 ---------- 1 file changed, 10 deletions(-) (limited to 'tests/auto/gui/kernel') diff --git a/tests/auto/gui/kernel/qhighdpi/tst_qhighdpi.cpp b/tests/auto/gui/kernel/qhighdpi/tst_qhighdpi.cpp index 350be874f9..c33d182f0b 100644 --- a/tests/auto/gui/kernel/qhighdpi/tst_qhighdpi.cpp +++ b/tests/auto/gui/kernel/qhighdpi/tst_qhighdpi.cpp @@ -46,7 +46,6 @@ private: // helpers QGuiApplication *createStandardOffscreenApp(const QJsonArray &screens); static void standardScreenDpiTestData(); private slots: - void initTestCase(); void cleanup(); void qhighdpiscaling_data(); void qhighdpiscaling(); @@ -174,15 +173,6 @@ void tst_QHighDpi::standardScreenDpiTestData() QTest::newRow("144-168-192") << QList { 144, 168, 192 }; // mixed dpi (1.5x, 1.75x, 2x) } -void tst_QHighDpi::initTestCase() -{ -#if QT_VERSION < QT_VERSION_CHECK(6, 0, 0) - // Run tests on the (proposed) Qt 6 default configuration - QGuiApplication::setAttribute(Qt::AA_EnableHighDpiScaling); - QGuiApplication::setHighDpiScaleFactorRoundingPolicy(Qt::HighDpiScaleFactorRoundingPolicy::PassThrough); -#endif -} - void tst_QHighDpi::cleanup() { // Some test functions set environment variables. Unset them here, -- cgit v1.2.3