Change QWeakPointer to QPointer to make it compile again