Please sign in to comment.
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Use begin/endResetModel instead of reset
Qt 4.6 introduced a better way of resetting models with beginResetModel()/ endResetModel(). Call beginResetModel() before resetting internal data structures, and then endResetModel() when finished. beginResetModel() followed by endResetModel() is the same as calling reset(). Note: reset() is deprecated and is removed in Qt 5.
- Loading branch information
Showing with 8 additions and 4 deletions.