diff options
author | Tor Arne Vestbø <tor.arne.vestbo@qt.io> | 2020-08-27 17:29:14 +0200 |
---|---|---|
committer | Tor Arne Vestbø <tor.arne.vestbo@qt.io> | 2020-08-28 22:16:53 +0200 |
commit | 9d2b43de19eebc836683e00ca0516a59cb6abe5d (patch) | |
tree | e116d68826eaa8b068cde23d90bbdcb10851928c /tests/auto/widgets/widgets | |
parent | 1aa412987f9f71232e6ed36d16df8f15efec9903 (diff) |
Use build-system to declare tests that are low-DPI
Change-Id: I6da7204683b3c46232cfc542ed5e28131a82e87d
Reviewed-by: Volker Hilsheimer <volker.hilsheimer@qt.io>
Diffstat (limited to 'tests/auto/widgets/widgets')
6 files changed, 4 insertions, 8 deletions
diff --git a/tests/auto/widgets/widgets/qframe/CMakeLists.txt b/tests/auto/widgets/widgets/qframe/CMakeLists.txt index 89f91d1967..ac53d07fbd 100644 --- a/tests/auto/widgets/widgets/qframe/CMakeLists.txt +++ b/tests/auto/widgets/widgets/qframe/CMakeLists.txt @@ -11,6 +11,7 @@ file(GLOB_RECURSE test_data_glob list(APPEND test_data ${test_data_glob}) qt_add_test(tst_qframe + LOWDPI SOURCES tst_qframe.cpp PUBLIC_LIBRARIES diff --git a/tests/auto/widgets/widgets/qframe/qframe.pro b/tests/auto/widgets/widgets/qframe/qframe.pro index 1da7eb1d11..cf874cbc8e 100644 --- a/tests/auto/widgets/widgets/qframe/qframe.pro +++ b/tests/auto/widgets/widgets/qframe/qframe.pro @@ -1,4 +1,4 @@ -CONFIG += testcase +CONFIG += testcase testcase_lowdpi TARGET = tst_qframe QT += testlib widgets diff --git a/tests/auto/widgets/widgets/qframe/tst_qframe.cpp b/tests/auto/widgets/widgets/qframe/tst_qframe.cpp index 0ca8dc0776..b5272f6b1a 100644 --- a/tests/auto/widgets/widgets/qframe/tst_qframe.cpp +++ b/tests/auto/widgets/widgets/qframe/tst_qframe.cpp @@ -38,9 +38,6 @@ class tst_QFrame : public QObject { Q_OBJECT -public: - static void initMain() { QCoreApplication::setAttribute(Qt::AA_DisableHighDpiScaling); } - private slots: void testDefaults(); void testInitStyleOption_data(); diff --git a/tests/auto/widgets/widgets/qopenglwidget/CMakeLists.txt b/tests/auto/widgets/widgets/qopenglwidget/CMakeLists.txt index d1af2e811c..062a468c6c 100644 --- a/tests/auto/widgets/widgets/qopenglwidget/CMakeLists.txt +++ b/tests/auto/widgets/widgets/qopenglwidget/CMakeLists.txt @@ -5,6 +5,7 @@ ##################################################################### qt_add_test(tst_qopenglwidget + LOWDPI SOURCES tst_qopenglwidget.cpp PUBLIC_LIBRARIES diff --git a/tests/auto/widgets/widgets/qopenglwidget/qopenglwidget.pro b/tests/auto/widgets/widgets/qopenglwidget/qopenglwidget.pro index 792bbf4529..9a6b0e2040 100644 --- a/tests/auto/widgets/widgets/qopenglwidget/qopenglwidget.pro +++ b/tests/auto/widgets/widgets/qopenglwidget/qopenglwidget.pro @@ -1,4 +1,4 @@ -CONFIG += testcase +CONFIG += testcase testcase_lowdpi TARGET = tst_qopenglwidget QT += opengl opengl-private gui-private core-private testlib widgets openglwidgets diff --git a/tests/auto/widgets/widgets/qopenglwidget/tst_qopenglwidget.cpp b/tests/auto/widgets/widgets/qopenglwidget/tst_qopenglwidget.cpp index 099a099c13..0b6d161890 100644 --- a/tests/auto/widgets/widgets/qopenglwidget/tst_qopenglwidget.cpp +++ b/tests/auto/widgets/widgets/qopenglwidget/tst_qopenglwidget.cpp @@ -48,9 +48,6 @@ class tst_QOpenGLWidget : public QObject { Q_OBJECT -public: - static void initMain() { QCoreApplication::setAttribute(Qt::AA_DisableHighDpiScaling); } - private slots: void initTestCase(); void create(); |