mirror of https://github.com/qt/qtbase.git
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>
This commit is contained in:
parent
517745fc9d
commit
5882131592
|
@ -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,
|
||||
|
|
Loading…
Reference in New Issue