qt5base-lts/tests/auto/widgets
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
..
dialogs Close QDialog via QWidget::close() 2021-09-16 14:24:00 +02:00
effects Fix tst_qgraphicseffect on Wayland 2021-03-11 08:04:21 +01:00
graphicsview Forward touchEvents to children inside QGraphicsProxyWidget 2021-09-06 19:41:22 +00:00
itemviews Fix QListView assert when the last row is moved in IconMode 2021-09-01 16:03:15 +00:00
kernel Always reset close-status of QWidget when trying to close 2021-09-15 18:53:57 +02:00
styles Implement missing support for 'em' and 'ex' lengths in style sheet 2021-08-10 19:43:02 +02:00
util Fix auto completion in QFileDialog on Windows 2021-07-09 00:48:44 +02:00
widgets Port to QImage and QPixmap deviceIndependentSize() 2021-09-01 15:24:05 +02:00
CMakeLists.txt Begin port of qtbase to CMake 2018-11-01 11:48:46 +00:00