diff options
author | Gatis Paeglis <gatis.paeglis@qt.io> | 2017-11-22 12:11:03 +0100 |
---|---|---|
committer | Gatis Paeglis <gatis.paeglis@qt.io> | 2017-11-30 15:05:40 +0000 |
commit | 75e583b3fcbdbbb999633eb5f2267720dd695cfa (patch) | |
tree | 4c8ecc462589c60322aa6cdf45cc79ac70ba4d22 /src/openglextensions/qopenglextensions.h | |
parent | 2bb443557d35ae748f7bfc9a3bcf711f1ca96048 (diff) |
qtestmouse: do not qWait for mocked events on macOS
This logic initially was copied from QTest::mouse* widget overload
(by d130382776e8b9db491385a0db45a3daaa79890c) which uses QCursor::setPos()
to generate mouse move events via the windowing system. The QCursor API was
later removed by 1762bf3394219db3a7a9cc99306f4111e6cb8492, but now the redundant
qWait logic remained. Later this stray qWait was incorrectly moved to apply
for all mouse event types (by 268f41ec70fd70d4aa44a5043d1a4e678df4c5b5), when
originally it was needed (arguably) only for mouse move events due to usage
of QCursor.
This patch also removes the waitForEvents() function as it is not a documented
qtestlib API (in qtestlib only the documented functions should be considered
public API, no matter what you can find in the header files). Removal does not
affect binary compatibility as this is not an exported symbol. And if somebody
has used this non public API, updating code is trivial.
Change-Id: Id1dec10f5cf276cee1ac0e8c8f8ba2edc493b667
Reviewed-by: Tor Arne Vestbø <tor.arne.vestbo@qt.io>
Diffstat (limited to 'src/openglextensions/qopenglextensions.h')
0 files changed, 0 insertions, 0 deletions