In Qt5 reset() is depricated.

Signed-off-by: Anton Lundin <glance@acc.umu.se>