rogue example modernization


Use 'auto' where appropriate.

Use constexprs instead of defines for WIDTH/HEIGHT.

Use inline class member initializations, update the documentation
accordingly.

Use QT_FORWARD_DECLARE_CLASS for Qt classes.

Use clang-format to reformat the code in some places.

Use std::hypot() for distance calculation.

Use per-class includes and sort them.

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