diff options
author | Volker Hilsheimer <volker.hilsheimer@qt.io> | 2021-10-25 12:30:32 +0200 |
---|---|---|
committer | Volker Hilsheimer <volker.hilsheimer@qt.io> | 2021-10-27 20:08:33 +0200 |
commit | 05532a09684990ebfabf1fa60fcdb7751afb8282 (patch) | |
tree | f420c0b2e01b58a5b06bcab5ef86ec64f2f17bf1 /examples/widgets/itemviews/spreadsheet/spreadsheetitem.h | |
parent | 5ffc744b791a114a3180a425dd26e298f7399955 (diff) |
Fix test to not rely on event processing
QTest's simulation of mouse move events currently uses QCursor::setPos
and then processes events. This is unreliable across platforms.
This test relies on the event processing and either way has inverted
logic in the paint event; the painted region needs to at least include
the tab's rect, not the other way around. Also, the mouse move wasn't
needed here at all, and some styles don't have a different style for
pressed tabs anyway.
Pick-to: 6.2
Change-Id: Ib8f6f7be017ff87458e96ec419edcd065dd75b15
Reviewed-by: Richard Moe Gustavsen <richard.gustavsen@qt.io>
Reviewed-by: Doris Verria <doris.verria@qt.io>
Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
Diffstat (limited to 'examples/widgets/itemviews/spreadsheet/spreadsheetitem.h')
0 files changed, 0 insertions, 0 deletions