qt6-bb10/tests/auto/widgets/widgets
Sergio Martins c082d84d5d Fix QLabel crash if buddy's lifetime is too short
If buddy is deleted then QLabel will still try to deliver the
shortcut event to it, in QLabel::event(), and cras.

Besides connecting to destroyed() which alone fixes the crash,
also hardened it and guarded against dereferencing null buddy,
in the unlikely event of someone adding features to QLabel.

The second part is suitable for backporting to the LTS branches.

Task-Id: QTBUG-66841
Change-Id: Ib6a36a9f99cee31afe1f88eb77f5b6cafb8b1086
Reviewed-by: Olivier Goffart (Woboq GmbH) <ogoffart@woboq.com>
2018-03-08 22:36:49 +00:00
..
qabstractbutton QAbstractButton: don't clear 'pressed' flag unless left button is released 2017-11-15 10:06:16 +00:00
qabstractscrollarea
qabstractslider testlib: start sharing common helper functions 2017-11-04 20:11:22 +00:00
qabstractspinbox testlib: start sharing common helper functions 2017-11-04 20:11:22 +00:00
qbuttongroup
qcalendarwidget
qcheckbox
qcombobox qtbase: cleanup BLACKLIST files 2018-02-13 15:20:33 +00:00
qcommandlinkbutton
qdatetimeedit Raise the upper bound on years to 9999 2017-11-30 20:19:13 +00:00
qdial
qdialogbuttonbox QDialogButtonGroup: Fix removal of deleted buttons 2017-03-02 10:42:55 +00:00
qdockwidget
qdoublespinbox
qfocusframe
qfontcombobox Update usage of QFontMetrics::width() to new API 2017-12-08 15:06:32 +00:00
qframe Fusion: desaturate the brown shades 2017-04-27 16:03:15 +00:00
qgroupbox QGroupBox tests: Correct spelling of "release" 2017-03-22 18:30:14 +00:00
qkeysequenceedit
qlabel Fix QLabel crash if buddy's lifetime is too short 2018-03-08 22:36:49 +00:00
qlcdnumber
qlineedit QLineEdit: Clear input context commit string after test functions 2018-02-19 14:24:09 +00:00
qmainwindow Ensure result of all QTest::qWaitFor are verified 2017-10-05 15:15:36 +00:00
qmdiarea Blacklist flaky tst_QMdiArea test 2017-06-13 16:00:58 +00:00
qmdisubwindow Blacklist tst_QMdiSubWindow::setOpaqueResizeAndMove on macOS 10.12 2018-02-15 13:17:48 +00:00
qmenu tests: cleanup tst_QMenu::click_while_dismissing_submenu() 2018-02-03 18:55:02 +00:00
qmenubar Merge remote-tracking branch 'origin/5.9' into 5.11 2018-02-14 12:51:24 +01:00
qopenglwidget qtbase: cleanup BLACKLIST files 2018-02-13 15:20:33 +00:00
qplaintextedit Update usage of QFontMetrics::width() to new API 2017-12-08 15:06:32 +00:00
qprogressbar Update usage of QFontMetrics::width() to new API 2017-12-08 15:06:32 +00:00
qpushbutton Ensure result of all QTest::qWaitFor are verified 2017-10-05 15:15:36 +00:00
qradiobutton
qscrollarea
qscrollbar Merge remote-tracking branch 'origin/5.9' into 5.11 2018-02-14 12:51:24 +01:00
qsizegrip
qslider
qspinbox qtbase: cleanup BLACKLIST files 2018-02-13 15:20:33 +00:00
qsplashscreen
qsplitter tst_QSplitter::replaceWidget: explicit wait for events 2018-01-26 19:58:17 +00:00
qstackedwidget Ensure result of all QTest::qWaitFor are verified 2017-10-05 15:15:36 +00:00
qstatusbar
qtabbar qtbase: cleanup BLACKLIST files 2018-02-13 15:20:33 +00:00
qtabwidget QTabWidget: Do not add tabbar size during sizeHint() when it is hidden 2018-03-07 18:36:06 +00:00
qtextbrowser
qtextedit tests: Fix warnings about inconsistent override 2017-10-27 20:01:25 +00:00
qtoolbar
qtoolbox
qtoolbutton macOS: Blacklist tst_QToolButton::task176137_autoRepeatOfAction() 2017-07-03 07:50:41 +00:00
widgets.pro