diff options
author | Tor Arne Vestbø <tor.arne.vestbo@qt.io> | 2021-10-11 15:57:46 +0200 |
---|---|---|
committer | Tor Arne Vestbø <tor.arne.vestbo@qt.io> | 2021-10-13 22:30:08 +0200 |
commit | 947188b969d14dd37c1c8b00b0b9c572cdd6cfac (patch) | |
tree | c3a888057ddc620d5669703eec252bdb8aeeceee /tests/auto/widgets/kernel/qwidget/tst_qwidget.cpp | |
parent | 0df7831d01b03910ae74a432c2a07a29d99fc315 (diff) |
Fix references to QGuiApplication::lastWindowClosed
The signal is emitted from QGuiApplication these days.
Pick-to: 6.2
Change-Id: I7423cd4808e8df86960f225fd6e4a12a1a4f11f3
Reviewed-by: Doris Verria <doris.verria@qt.io>
Reviewed-by: Volker Hilsheimer <volker.hilsheimer@qt.io>
Diffstat (limited to 'tests/auto/widgets/kernel/qwidget/tst_qwidget.cpp')
-rw-r--r-- | tests/auto/widgets/kernel/qwidget/tst_qwidget.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/auto/widgets/kernel/qwidget/tst_qwidget.cpp b/tests/auto/widgets/kernel/qwidget/tst_qwidget.cpp index 3f73b2ff26..a7c3f86687 100644 --- a/tests/auto/widgets/kernel/qwidget/tst_qwidget.cpp +++ b/tests/auto/widgets/kernel/qwidget/tst_qwidget.cpp @@ -12225,7 +12225,7 @@ void tst_QWidget::deleteWindowInCloseEvent() */ void tst_QWidget::quitOnClose() { - QSignalSpy quitSpy(qApp, &QApplication::lastWindowClosed); + QSignalSpy quitSpy(qApp, &QGuiApplication::lastWindowClosed); std::unique_ptr<QWidget>widget(new QWidget); widget->show(); |