Use begin/endResetModel() to do the reset

Since 4.6 the recommended way is to use begin/endResetModel(). In Qt5 reset() is no longer present.