diff options
author | Volker Hilsheimer <volker.hilsheimer@qt.io> | 2020-10-13 21:00:21 +0200 |
---|---|---|
committer | Volker Hilsheimer <volker.hilsheimer@qt.io> | 2020-10-14 06:38:43 +0200 |
commit | 1c76aa077e9c9d74fa2314752948896f9da381ee (patch) | |
tree | ef979f532d759c9ae061c400415afd974d3edd26 /tests/auto/widgets/widgets/qmdiarea | |
parent | 772a10391eead51e2c7c9b50473ef0f8096cef82 (diff) | |
download | qtbase-1c76aa077e9c9d74fa2314752948896f9da381ee.tar.gz |
Get rid of all usage of QApplication:desktop
Use QScreen APIs instead.
Change-Id: Ie99af94fe4292223dbb165b3f5c1b74e8fe0498b
Reviewed-by: Tor Arne Vestbø <tor.arne.vestbo@qt.io>
Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
Diffstat (limited to 'tests/auto/widgets/widgets/qmdiarea')
-rw-r--r-- | tests/auto/widgets/widgets/qmdiarea/tst_qmdiarea.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/auto/widgets/widgets/qmdiarea/tst_qmdiarea.cpp b/tests/auto/widgets/widgets/qmdiarea/tst_qmdiarea.cpp index 12593298e8..4914caf788 100644 --- a/tests/auto/widgets/widgets/qmdiarea/tst_qmdiarea.cpp +++ b/tests/auto/widgets/widgets/qmdiarea/tst_qmdiarea.cpp @@ -901,7 +901,7 @@ void tst_QMdiArea::sizeHint() { QMdiArea workspace; workspace.show(); - QSize desktopSize = QApplication::desktop()->size(); + QSize desktopSize = QGuiApplication::primaryScreen()->size(); QSize expectedSize(desktopSize.width() * 2/3, desktopSize.height() * 2/3); QCOMPARE(workspace.sizeHint(), expectedSize); |