QAbstractBarSeries: fix ownership when calling insert()


The docs claim that the series takes ownership of the inserted bar set.
However, that didn't happen in practice. Fix by explicitly calling
setParent(this), like it's done for other similar operations.

Amends 978d41b59ab7cf2126b52ccd379b5c437753f7f4.

Pick-to: 6.10 6.9 6.8 6.5
Change-Id: I19d1399195a63d096bb00b1a13d15e1b9a8d9493
Reviewed-by: Miikka Heikkinen <miikka.heikkinen@qt.io>
commitea13d9ad24106d0f0c08549bdd4e6e1ec8a1a936
parent159994409d7669b9d37e6e8aaebe67646267cedb
authorIvan Solovev <ivan.solovev@qt.io>
committerIvan Solovev <ivan.solovev@qt.io>
commit timeThu, 5 Jun 2025 11:08:59 +0200