diff options
author | Friedemann Kleint <Friedemann.Kleint@qt.io> | 2019-07-02 14:15:04 +0200 |
---|---|---|
committer | Friedemann Kleint <Friedemann.Kleint@qt.io> | 2019-07-02 22:39:50 +0200 |
commit | e5ab131c18d1c2f75c097272c3300bf25f256367 (patch) | |
tree | f1a6b71cdc46271f23d4eeeedc1b7bf1846d85c2 /tests/auto/widgets/graphicsview/qgraphicsview/tst_qgraphicsview.cpp | |
parent | 9ea53c4a98281e4be12164929a7ca5dc7c014280 (diff) |
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>
Diffstat (limited to 'tests/auto/widgets/graphicsview/qgraphicsview/tst_qgraphicsview.cpp')
0 files changed, 0 insertions, 0 deletions