summaryrefslogtreecommitdiffstats
path: root/tests/auto/widgets/kernel/qwidget/tst_qwidget.cpp
diff options
context:
space:
mode:
authorTor Arne Vestbø <tor.arne.vestbo@qt.io>2021-10-11 15:57:46 +0200
committerTor Arne Vestbø <tor.arne.vestbo@qt.io>2021-10-13 22:30:08 +0200
commit947188b969d14dd37c1c8b00b0b9c572cdd6cfac (patch)
treec3a888057ddc620d5669703eec252bdb8aeeceee /tests/auto/widgets/kernel/qwidget/tst_qwidget.cpp
parent0df7831d01b03910ae74a432c2a07a29d99fc315 (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.cpp2
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();