Removing unnecessary QScopedPointers from MainWindow