Port QScxmlStateMachine to makeCallableObject helpers


Simplify and collapse the overloads using QtPrivate::makeCallableObject.
As a side effect, this prevents connections to QObject member functions
with incompatible prototype, which previously would compile, and then
crash.

Adjust and simplify the documentation to hide all the implementation
details for overload selection.

Change-Id: I163db6683f5c791faef37bfcab0ee3572a44d1b7
Reviewed-by: Ville Voutilainen <ville.voutilainen@qt.io>
commitcdc44341a72b8f9612f11ccea905cb833668b01a
parent12ccc8e5d6ddc0fd533b8e1b64f5769a36610da6
authorVolker Hilsheimer <volker.hilsheimer@qt.io>
committerVolker Hilsheimer <volker.hilsheimer@qt.io>
commit timeFri, 12 May 2023 08:03:28 +0200