Details
- Reviewers
dfaure - Group Reviewers
Frameworks
My new application (unpublished) run model tests and add/remove elements in its proxy chain during that. It is how this was discovered.
Diff Detail
- Lint
Lint Skipped - Unit
Unit Tests Skipped
As a general suggestion, if this fixes the bug, please add the usual line
BUG: xyz
and please add a bit more of explanation in the description so that it's clear even without reading the bug.
(I'm not qualified to comment on the content of the review itself).
src/krearrangecolumnsproxymodel.cpp | ||
---|---|---|
44 | Please no short hand variable names. cc -> sourceColCount? |
Can you add a unittest too? This class is fully unittested in krearrangecolumnsproxymodeltest.cpp, it's just that changing the source columns configuration "at runtime" wasn't supported. Just add one more test method, with spies for the signals you emit.
Thanks!
This has been fixed with beginResetModel/endResetModel meanwhile, see D27876.
It's arguable which way is better, because the new set of columns can be really different from the old one....