summaryrefslogtreecommitdiffstats
path: root/desktop-widgets/mainwindow.cpp
diff options
context:
space:
mode:
authorGravatar Berthold Stoeger <bstoeger@mail.tuwien.ac.at>2019-04-27 16:45:50 +0200
committerGravatar Dirk Hohndel <dirk@hohndel.org>2019-04-29 13:06:39 -0700
commit36d8dcc3bf9b4d31d86d2b739196dd52ebf226f2 (patch)
tree0a39483191bbb2e30092f11ee6d8bb8aa5b87b61 /desktop-widgets/mainwindow.cpp
parent4f0fd86d3530cf921e63e8a462946a8dfccff5ae (diff)
downloadsubsurface-36d8dcc3bf9b4d31d86d2b739196dd52ebf226f2.tar.gz
Cleanup: implement proper Qt-model semantics in TankInfoModel
- Use a beginResetModel()/endResetModel() pair instead of distinct addRows / removeRows pairs. - Reuse the update function in the constructor(). - Let "rows" be the number of rows, not the number of rows minus one. Signed-off-by: Berthold Stoeger <bstoeger@mail.tuwien.ac.at>
Diffstat (limited to 'desktop-widgets/mainwindow.cpp')
0 files changed, 0 insertions, 0 deletions