summaryrefslogtreecommitdiffstats
path: root/tests/auto/gui
diff options
context:
space:
mode:
authorMorten Johan Sørvig <morten.sorvig@qt.io>2021-04-28 15:50:41 +0200
committerMorten Johan Sørvig <morten.sorvig@qt.io>2021-05-04 16:21:48 +0200
commit588213159208c6eabe660cf44569104eb5e0212d (patch)
treebc974a3a9295afa6794a9475e2e3017cdf2a79bb /tests/auto/gui
parent517745fc9de02f174e1d93527e84c35502fbd8b0 (diff)
Remove setting of Qt 5 high-dpi attributes
This test is for Qt 6 now. Change-Id: I839c2733d505cb4119b1fe3ad85d3c8d94a6c964 Reviewed-by: Tor Arne Vestbø <tor.arne.vestbo@qt.io>
Diffstat (limited to 'tests/auto/gui')
-rw-r--r--tests/auto/gui/kernel/qhighdpi/tst_qhighdpi.cpp10
1 files changed, 0 insertions, 10 deletions
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<qreal> { 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,