Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use begin/endResetModel instead of reset #1287

Merged
merged 1 commit into from Apr 2, 2014

Conversation

simonsonc
Copy link
Contributor

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.

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.
@mhugent
Copy link
Contributor

mhugent commented Apr 2, 2014

assigned to @wonder-sk

wonder-sk added a commit that referenced this pull request Apr 2, 2014
Use begin/endResetModel instead of reset
@wonder-sk wonder-sk merged commit d3db42d into qgis:master Apr 2, 2014
@simonsonc simonsonc deleted the reset-model branch April 2, 2014 13:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants