moveblocks example modernization


Remove unused StateSwitchEvent constructor that was leaving
m_rand uninitialized.

Use constexpr instead of anonymous enum to declare a custom
event.

Reformat the code in some places using clang-format.

Use inline class member initialization.

Add 'explicit' to some constructors.

Use 'auto' where appropriate.

Use per-class includes.

Pick-to: 6.5
Task-number: QTBUG-111448
Change-Id: I7cdf243ccae25114c7ffa67dd75f981bfeac759f
Reviewed-by: Juha Vuolle <juha.vuolle@qt.io>
commit677ea4561b5dda25308adb952505d5ebc2c756db
parentaf126cbe72a7ed631f56393862548e8fa713c26c
authorIevgenii Meshcheriakov <ievgenii.meshcheriakov@qt.io>
committerIevgenii Meshcheriakov <ievgenii.meshcheriakov@qt.io>
commit timeThu, 20 Apr 2023 11:00:23 +0200