QtQml: Keep signal handler names as written
The signal handler resolver used to rewrite the name of each signal
handler binding from the handler name to the signal or property it
refers to, "onClicked" to "clicked" and "onXChanged" to "x". This makes
the name depend on the classification of the binding, which in turn
depends on the resolved types. We want to move the classification out of
the compilation unit, and therefore the names need to be independent of
it.
Leave the names alone and derive the signal or property name where we
need it. Add a helper to QQmlSignalNames that picks the right conversion
for change handlers and other handlers. The rewriting also served as
guard against classifying the bindings of attached objects twice. Check
the classification flag instead.
Task-number: QTBUG-147816
Change-Id: I88a21ffec57845be3219701f6e811f576b5afe45
Reviewed-by: Sami Shalayel <sami.shalayel@qt.io>