qt5base-lts/tests/auto
Tor Arne Vestbø 0246bfd40a Close QDialog via QWidget::close()
By going via QWidget::close() we ensure that if there's a QWidgetWindow
backing the dialog (which is almost always the case), we will plumb down
to QWindow::close(), resulting in QEvent::Close events to the QWindow.

Since we don't want QDialog subclasses to receive a call to a closeEvent
override that they didn't receive before (and which they might interpret
as rejection or cancellation), install a temporary event filter that
eats the QCloseEvent resulting from the call to close().

Task-number: QTBUG-53286
Change-Id: Ie8f6f0cb3160acfd5865dc74f0a7b6d87f838724
Reviewed-by: Tor Arne Vestbø <tor.arne.vestbo@qt.io>
2021-09-16 14:24:00 +02:00
..
bic/data Add binary compatibility files for 6.1 2021-09-03 13:41:25 +00:00
cmake Implement generating of private cpp exports 2021-08-27 11:01:47 +02:00
concurrent Fix QtConcurrent::blockingMapped to work with non-template sequences 2021-09-08 15:05:32 +02:00
corelib QThreadPool: Fix restarting of expired threads 2021-09-15 15:46:53 +02:00
dbus tests: Remove unused SRCDIR defines 2021-08-17 12:41:57 +00:00
gui Fix querying font aliases that share name with other fonts 2021-09-11 11:59:51 +00:00
guiapplauncher Move QStateMachine from QtCore to QtScxml 2020-08-24 20:10:25 +02:00
network tst_http2: Fix flaky authentication test 2021-09-10 14:17:05 +00:00
opengl Remove the qmake project files 2021-01-07 15:32:28 +01:00
other Improve lancelot test of dashed line painting 2021-08-20 13:50:24 +02:00
printsupport Remove the qmake project files 2021-01-07 15:32:28 +01:00
shared Remove false Q_UNREACHABLE from shaping code 2021-02-03 09:44:44 +01:00
sql testlib: Deprecate QWARN() in favor of qWarning() 2021-08-04 19:31:51 +02:00
testlib Fix Catch2 compiling for INTEGRITY 2021-09-14 21:18:07 +03:00
tools moc: Support BINDABLE for private properties 2021-08-06 17:25:50 +02:00
widgets Close QDialog via QWidget::close() 2021-09-16 14:24:00 +02:00
xml tst_qdom: clean-up the code enabled only before Qt 6 2021-01-15 15:22:08 +01:00
CMakeLists.txt CMake: Build a subset of tests when targeting iOS in the CI 2021-08-26 16:40:15 +02:00
network-settings.h Replace QtTest headers with QTest 2020-12-22 15:20:30 +01:00