diff options
| author | Friedemann Kleint <Friedemann.Kleint@qt.io> | 2021-03-29 15:17:58 +0200 |
|---|---|---|
| committer | Friedemann Kleint <Friedemann.Kleint@qt.io> | 2021-03-29 18:23:37 +0200 |
| commit | cb575c49ac63687c9a8b671b36b8b1cefbc01de0 (patch) | |
| tree | 01be0b659dcc21368df254e83fd188b41a32e882 /sources/pyside6/PySide6/support/generate_pyi.py | |
| parent | 453f14aa244ae589e043d655acbdf263db929340 (diff) | |
Brush up the collidingmice example
- Port to snake case.
- Use per-class imports.
- Replace call to obsolete qrand() function.
- Fix the random movement (angle) by using setRotation() as does
the C++ example.
- Use QGraphicsScene.advance() instead of per-mouse timers
to advance the scene as does the C++ example.
Task-number: PYSIDE-1112
Change-Id: Ibb5b4bde51021d890acb4cc6c2f41a3e0d0207af
Reviewed-by: Cristian Maureira-Fredes <cristian.maureira-fredes@qt.io>
Diffstat (limited to 'sources/pyside6/PySide6/support/generate_pyi.py')
0 files changed, 0 insertions, 0 deletions
