pingpong example modernization


Use constexpr to declare custom events.

Reformat the code in some places using clang-format.

Use qInfo() instead of std::cout.

Use 'auto' where appropriate.

Use per-class includes.

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