Nyall Dawson aa7bc651f3 Create QObjectParentUniquePtr smart pointer for non-qobject children
owned by a parent QObject

E.g. QGraphicsItem subclasses are not QObjects themselves, but
are owned by a QObject QGraphicsScene. Depending on whether the
graphics item is deleted first or the scene, we can end up with
a double-free situation.

Fix this by creating a QObjectParentUniquePtr smart pointer which
is automatically nulled if the parent QObject (e.g. the QGraphicsScene)
is deleted first.

(Adapted from existing QObjectUniquePtr logic and logic in
QgsSnapIndicator)
2022-05-22 13:20:33 +10:00
..
2022-04-29 08:21:47 +10:00
2022-03-17 18:12:27 +10:00
2022-05-12 19:58:04 +10:00
2022-02-28 11:30:12 +01:00