Bugfix: When restoring table columns, still set their minimum column width and stretch on last section#368
Conversation
…lumn width and stretch on last section
Are
How is it observable by a user? |
jarolrod
left a comment
There was a problem hiding this comment.
Are minimumSectionSize and stretchLastSection parts of the saved state?
yes, they both are. See: https://code.qt.io/cgit/qt/qt.git/tree/src/gui/itemviews/qheaderview.cpp#n3556
Regression introduced in #205
While I think this change is ok, is it possible for a user to actually manipulate the header view in a way where they can run into an issue here?
|
The
|
|
I guess this is more about not relying on undefined behaviour rather than a bugfix. Leaving the assignment prior to restoring sizes, so that users who actually go to the trouble to hack their setting are respected. |
Why only are And |
|
This discussion has been inactive for a long time. Should it be closed? |
|
Let's leave this open - In previous work I added a "bumper" column to the tableview - this helped address some of the issues. The bumper column was an addon to other PRs but not a stand alone PR - I will put together a PR that focuses on why this is useful. |
|
The following sections might be updated with supplementary metadata relevant to reviewers and maintainers. ConflictsReviewers, this pull request conflicts with the following ones:
If you consider this pull request important, please also help to review the conflicting pull requests. Ideally, start with the one that should be merged first. |
|
🤔 There hasn't been much activity lately and the CI seems to be failing. If no one reviewed the current pull request by commit hash, a rebase can be considered. While the CI failure may be a false positive, the CI hasn't been running for some time, so there may be a real issue hiding as well. A rebase triggers the latest CI and makes sure that no silent merge conflicts have snuck in. |
|
Closing due to lack of activity. |
Regression introduced in #205Correction: Undefined behaviour currently makes this a non-issue, but probably better to be safe and do it correctly.