De-inline Enum and Object destructors


The classes had inline virtual d-tors, which means that they will
produce duplicated vtables (see QTBUG-45582).

This patch de-inlines the destructors (and c-tors as drive-by).
It required to create two more .mustache templates for the cpp
files and add them to the relevant Java and CMake code.

Pick-to: 6.11
Change-Id: I87c085be3d31de376fd621f5449dc6482cd88bec
Reviewed-by: Rym Bouabid <rym.bouabid@qt.io>
Reviewed-by: Tatiana Borisova <tatiana.borisova@qt.io>
commit5db1602d3f83710e3f198fec8e49b07faf6cecb8
parent8f2113ee5c1aa62cc38fb2aaf5a97731c3696470
authorIvan Solovev <ivan.solovev@qt.io>
committerIvan Solovev <ivan.solovev@qt.io>
commit timeThu, 11 Dec 2025 17:12:59 +0100