I agree. However, I would prefer to leave the pointers as they are, timed code is currently a bit complicated with Qt4/Qt5 co-existing.

The code needs to be cleaned up/refactored (maybe we can get rid of Qt4 version at some point in time), and use of QScopedPointers would be a good addition to the cleanup action. I admit that this pull request adds a little bit to the tech debt that timed has amassed.