Improve engine memory management


Make engine unique_ptr instead of raw pointer. Make engine() inline.
Use m_e consistently internally in the class and engine() outside.

Pick-to: 6.12
Change-Id: I7a9c0273e0090423fe78470a5bef29a0d7e7fb16
Reviewed-by: Laszlo Agocs <laszlo.agocs@qt.io>
commit7379caf218f3962cb254d2b0211bed205c16cd77
parent2b23701f5ac9040b3e6fe89a927393406ccc6b4c
authorKaj Grönholm <kaj.gronholm@qt.io>
committerKaj Grönholm <kaj.gronholm@qt.io>
commit timeWed, 2 Sep 2026 10:00:17 +0000