[QGIS Commit] [qgis/QGIS] 29c8bc: Use begin/endResetModel instead of reset

GitHub noreply at github.com
Wed Apr 2 00:50:59 PDT 2014


  Branch: refs/heads/master
  Home:   https://github.com/qgis/QGIS
  Commit: 29c8bc5375018e0928e48816fb29e63347550c84
      https://github.com/qgis/QGIS/commit/29c8bc5375018e0928e48816fb29e63347550c84
  Author: Carl Simonson <simonsonc at gmail.com>
  Date:   2014-04-01 (Tue, 01 Apr 2014)

  Changed paths:
    M src/core/qgsbrowsermodel.cpp
    M src/core/symbology-ng/qgscptcityarchive.cpp
    M src/gui/attributetable/qgsattributetablemodel.cpp
    M src/plugins/topology/dockModel.cpp

  Log Message:
  -----------
  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.


  Commit: d3db42d91f88b7898f7d6998464d8c56e1d2ee86
      https://github.com/qgis/QGIS/commit/d3db42d91f88b7898f7d6998464d8c56e1d2ee86
  Author: Martin Dobias <wonder.sk at gmail.com>
  Date:   2014-04-02 (Wed, 02 Apr 2014)

  Changed paths:
    M src/core/qgsbrowsermodel.cpp
    M src/core/symbology-ng/qgscptcityarchive.cpp
    M src/gui/attributetable/qgsattributetablemodel.cpp
    M src/plugins/topology/dockModel.cpp

  Log Message:
  -----------
  Merge pull request #1287 from simonsonc/reset-model

Use begin/endResetModel instead of reset


Compare: https://github.com/qgis/QGIS/compare/bc40ab69c9d6...d3db42d91f88


More information about the QGIS-commit mailing list