diff options
| author | David Faure <david.faure@kdab.com> | 2016-12-29 18:15:53 +0100 |
|---|---|---|
| committer | David Faure <david.faure@kdab.com> | 2016-12-29 17:32:58 +0000 |
| commit | 77a8e90cddcfa1c34518ef846a4838874a7bc0c7 (patch) | |
| tree | d88f2e8f6c57e91317786205582d67db102a3592 /src/gui/opengl/qopenglversionfunctions.cpp | |
| parent | 73dafaf265a6c6a51611a093c2cc81a6d61767a9 (diff) | |
QHeaderView: fix restoreState() on a model with more columns
When saving state for a 3-columns headerview and then restoring that
state onto a 5-column headerview, the headerview shouldn't suddenly think
it has 3 columns.
Rather than making restoreState() fail, we adjust for the additional
columns, so that we can still apply the customizations from the user to
all other columns (hiding, moving, etc.).
Change-Id: I3f220aa322ea8b629d2fe345f8cde13e0ea615d6
Reviewed-by: Thorbjørn Lund Martsum <tmartsum@gmail.com>
Diffstat (limited to 'src/gui/opengl/qopenglversionfunctions.cpp')
0 files changed, 0 insertions, 0 deletions
