summaryrefslogtreecommitdiffstats
path: root/examples/statemachine/trafficlight/main.cpp
Commit message (Collapse)AuthorAgeFilesLines
* trafficlight example modernizationIevgenii Meshcheriakov2023-04-201-36/+35
| | | | | | | | | | | | | | | | | | | | | 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>
* Flatten the state machine example directory structureJuha Vuolle2023-03-101-0/+153
The split into "animation" "graphicsview" and "statemachine" sub-directories is a reminiscent of the times when the examples were in qtcore, and as such not very meaningful when state machine is in a separate repository. In addition remove similarly inherited READMEs. Pick-to: 6.5.0 6.5 Task-number: QTBUG-111447 Change-Id: I8f3d977512fdc239bf3dede341f69788df0a09f4 Reviewed-by: Volker Hilsheimer <volker.hilsheimer@qt.io>