diff options
author | Berthold Stoeger <bstoeger@mail.tuwien.ac.at> | 2021-01-24 23:29:28 +0100 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2021-04-02 13:53:23 -0700 |
commit | 79ddb23edfb28da8445ec9c7e79f79a62881b715 (patch) | |
tree | 6eb4e41d126f425253272a10a304a176327a447b /qt-models/filterconstraintmodel.h | |
parent | 396758d4896197be9dd9f6d71e094068203e52a6 (diff) | |
download | subsurface-79ddb23edfb28da8445ec9c7e79f79a62881b715.tar.gz |
profile: implement proper model/view semantics in ProfileWidget2
The ProfileWidget2 slots, which reacted to model changes were
broken. They did not add / remove items at the changed positions,
but arbitrarily at the end. Moreover, they assumed that only
a single item was added / removed and thus violated the model/view
API.
This worked because the handles are completely reset after each
operation and the model only ever touched single items.
Nevertheless, this has to be fixed if we ever want finer grained
undo.
Signed-off-by: Berthold Stoeger <bstoeger@mail.tuwien.ac.at>
Diffstat (limited to 'qt-models/filterconstraintmodel.h')
0 files changed, 0 insertions, 0 deletions