- Move the original m_toolviews as it gets modified on destruction - Use QPointer for storing toolviews (cherry picked from commit ee52fd4b)