diff options
author | Berthold Stoeger <bstoeger@mail.tuwien.ac.at> | 2019-04-27 16:45:50 +0200 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2019-04-29 13:06:39 -0700 |
commit | 36d8dcc3bf9b4d31d86d2b739196dd52ebf226f2 (patch) | |
tree | 0a39483191bbb2e30092f11ee6d8bb8aa5b87b61 /desktop-widgets/mainwindow.cpp | |
parent | 4f0fd86d3530cf921e63e8a462946a8dfccff5ae (diff) | |
download | subsurface-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