Remove childEvent override


Using qobject_cast on the child in a ChildAdded handler doesn't work, as
the event is sent (not posted) by the QObject constructor (so the vtable
is always QObject's).

As we add all children to the chart in the componentComplete handler we
can just remove this effectively dead code.

Axivion-Id: qt_Add-ons_qtcharts_dev_linux:SV707
Axivion-Id: qt_Add-ons_qtcharts_dev_linux:SV708
Task-number: QTBUG-146050
Pick-to: 6.12
Change-Id: I1789f146e2a7e00ba0115161d32ed123bc4afcdb
Reviewed-by: Miikka Heikkinen <miikka.heikkinen@qt.io>
commitce3b11fa58434c3931616d7d687db11bbcc341cb
parent2e840405790587c77e2f565367f755e69a75ea99
authorVolker Hilsheimer <volker.hilsheimer@qt.io>
committerVolker Hilsheimer <volker.hilsheimer@qt.io>
commit timeThu, 18 Jun 2026 11:49:50 +0000