trafficlight example modernization
Add 'explicit' to some constructors.
Use inline class member initialization where possible.
Reformat some code using clang-format.
Add Q_OBJECT macros to QObjects.
Pass entire rectangle to QPainter::drawEllipse().
Use 'auto' where appropriate.
Add module prefix to Qt includes and sort them.
Pick-to: 6.5
Task-number: QTBUG-111448
Change-Id: Ibfb49608b5f3710684b2b07d29b14ad03a8dfb24
Reviewed-by: Juha Vuolle <juha.vuolle@qt.io>
| commit | 9c1a5a12fe8f49c7b1881f924e0b946bf8dc8232 |
| parent | 907f7e3ac2be9dca4cbbce5495ff7e4f212de45a |
| author | Ievgenii Meshcheriakov <ievgenii.meshcheriakov@qt.io> |
| committer | Ievgenii Meshcheriakov <ievgenii.meshcheriakov@qt.io> |
| commit time | Thu, 20 Apr 2023 11:00:28 +0200 |