qt5base-lts/tests/auto/widgets/kernel
Friedemann Kleint e5ab131c18 tst_QShortcut: Remove test widget and other member variables
Remove the mainW, edit widget member variables from the test and use
widgets instantiated on the stack in the tests.

For the data-driven tests, use a static QScopedPointer, which is
reset by a newly introduced TestEnd action.

The book-keeping logic maintaining a list of shortcuts can then be
removed.

The setupShortcut() helpers are simplified and the special case
TestWidget::SendKeyEvent is replaced by a lambda in
keypressConsumption().

Task-number: QTBUG-76493
Change-Id: I15dfa86dfa0666ed8288b7190e37cdb862c261c8
Reviewed-by: Allan Sandfeld Jensen <allan.jensen@qt.io>
2019-07-02 22:39:50 +02:00
..
qaction tst_QAction(Group): Brush up the tests 2019-06-28 00:24:40 +02:00
qactiongroup tst_QAction(Group): Brush up the tests 2019-06-28 00:24:40 +02:00
qapplication Merge remote-tracking branch 'origin/5.12' into 5.13 2019-05-27 09:17:14 +02:00
qboxlayout Fix bug with QLayout::replaceWidget(a, a) 2019-05-09 12:01:38 +00:00
qdesktopwidget Fix deprecation warnings in widget autotests 2019-02-08 18:00:51 +00:00
qformlayout Replace Q_DECL_NOTHROW with noexcept the remaining places 2019-04-09 14:48:42 +00:00
qgesturerecognizer tests: un-blacklist tst_QGestureRecognizer::panGesture on xcb 2018-06-25 13:41:40 +00:00
qgridlayout tests/auto/widgets/kernel: Avoid unconditional qWait()s 2018-04-24 05:01:57 +00:00
qlayout winrt: make widgets/kernel auto tests pass 2018-06-22 05:02:45 +00:00
qshortcut tst_QShortcut: Remove test widget and other member variables 2019-07-02 22:39:50 +02:00
qsizepolicy Fix tst_QSizePolicy::constExpr() to compile with MSVC 15.8.1 2018-08-30 06:23:51 +00:00
qstackedlayout tests/auto/widgets/kernel: Avoid unconditional qWait()s 2018-04-24 05:01:57 +00:00
qtooltip QToolTip: Don't crash if a tool tip is shown outside screen geometry 2018-10-15 07:44:04 +00:00
qwidget Merge remote-tracking branch 'origin/5.12' into 5.13 2019-06-25 15:47:42 +02:00
qwidget_window Make tst_qwidget_window pass on High-DPI screens (Windows) 2019-05-16 12:56:33 +00:00
qwidgetaction testlib: start sharing common helper functions 2017-11-04 20:11:22 +00:00
qwidgetmetatype Finish qmetatype migration to type switcher 2018-10-03 14:48:55 +00:00
qwidgetsvariant Updated license headers 2016-01-21 18:55:18 +00:00
qwindowcontainer winrt: make widgets/kernel auto tests pass 2018-06-22 05:02:45 +00:00
kernel.pro Cleanup widgets/kernel.pro after modularization 2019-03-27 09:29:20 +00:00