Make the parent in Partition a QPointer.

Authored by teo on Apr 27 2016, 2:52 PM.