qt5base-lts/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 Updated license headers 2016-01-21 18:55:18 +00:00
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 Updated license headers 2016-01-21 18:55:18 +00:00
qcalendarwidget Updated license headers 2016-01-21 18:55:18 +00:00
qcheckbox Updated license headers 2016-01-21 18:55:18 +00:00
qcombobox qtbase: cleanup BLACKLIST files 2018-02-13 15:20:33 +00:00
qcommandlinkbutton Updated license headers 2016-01-21 18:55:18 +00:00
qdatetimeedit Raise the upper bound on years to 9999 2017-11-30 20:19:13 +00:00
qdial Updated license headers 2016-01-21 18:55:18 +00:00
qdialogbuttonbox QDialogButtonGroup: Fix removal of deleted buttons 2017-03-02 10:42:55 +00:00
qdockwidget tests/auto/widgets: use QCOMPARE(., nullptr) 2016-11-30 07:24:47 +00:00
qdoublespinbox Updated license headers 2016-01-21 18:55:18 +00:00
qfocusframe Updated license headers 2016-01-21 18:55:18 +00:00
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 Updated license headers 2016-01-21 18:55:18 +00:00
qlabel Fix QLabel crash if buddy's lifetime is too short 2018-03-08 22:36:49 +00:00
qlcdnumber Updated license headers 2016-01-21 18:55:18 +00:00
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 Updated license headers 2016-01-21 18:55:18 +00:00
qscrollarea Updated license headers 2016-01-21 18:55:18 +00:00
qscrollbar Merge remote-tracking branch 'origin/5.9' into 5.11 2018-02-14 12:51:24 +01:00
qsizegrip Updated license headers 2016-01-21 18:55:18 +00:00
qslider Updated license headers 2016-01-21 18:55:18 +00:00
qspinbox qtbase: cleanup BLACKLIST files 2018-02-13 15:20:33 +00:00
qsplashscreen Updated license headers 2016-01-21 18:55:18 +00:00
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 Updated license headers 2016-01-21 18:55:18 +00:00
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 Merge remote-tracking branch 'origin/5.6' into 5.7 2016-03-24 20:37:33 +01:00
qtextedit tests: Fix warnings about inconsistent override 2017-10-27 20:01:25 +00:00
qtoolbar Updated license headers 2016-01-21 18:55:18 +00:00
qtoolbox Updated license headers 2016-01-21 18:55:18 +00:00
qtoolbutton macOS: Blacklist tst_QToolButton::task176137_autoRepeatOfAction() 2017-07-03 07:50:41 +00:00
widgets.pro Widgets: Update micro focus in QLineEdit and friends 2017-02-17 17:09:50 +00:00