qt5base-lts/tests/auto/widgets
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
..
dialogs Merge remote-tracking branch 'origin/5.12' into 5.13 2019-06-07 13:19:27 +02:00
effects qWaitFor: Prevent being stuck in QCoreApplication::processEvents 2019-01-09 18:10:54 +00:00
graphicsview tst_QGraphicsView::cursor2(): Prospective fix for flakyness on Windows 2019-06-07 11:07:39 +02:00
itemviews Merge remote-tracking branch 'origin/5.12' into 5.13 2019-06-07 13:19:27 +02:00
kernel tst_QShortcut: Remove test widget and other member variables 2019-07-02 22:39:50 +02:00
styles Merge remote-tracking branch 'origin/5.12' into 5.13 2019-04-16 09:34:50 +02:00
util Merge remote-tracking branch 'origin/5.12' into 5.13 2019-06-11 01:00:06 +02:00
widgets Remove usages of deprecated APIs from QDateTime 2019-07-02 09:49:36 +02:00
widgets.pro Move QGestureRecognizer test to widgets/kernel 2017-06-02 18:36:11 +00:00