summaryrefslogtreecommitdiffstats
path: root/src/widgets/dialogs/qfiledialog.cpp
diff options
context:
space:
mode:
authorThorbjørn Martsum <tmartsum@gmail.com>2015-06-26 06:36:54 +0200
committerThorbjørn Lund Martsum <tmartsum@gmail.com>2016-01-01 12:56:29 +0000
commit024a52d0d12aaceffd67d0a1423408fb1f377d11 (patch)
tree6cf3c0f597fa021ebafeee189408edb66d558824 /src/widgets/dialogs/qfiledialog.cpp
parent9059931cd2103a814d247d35998d49f03e9131e5 (diff)
QHeaderView - fix broken stretchLastSection
In setStretchLastSection we restore a default section size if we no longer use stretch. That size was however not sufficient - we should restore the actual size. Furthermore we should also always stretch the last section (last visible index) - and not leave a section with a huge size and stretch another. This patch refactors stretch handling and keeps track of the last section and its size in eg. moveSection, swapSection, hideSection, showSection etc. There is an auto test showing and guarding its behavior. [ChangeLog][QtWidgets][QHeaderView] Fixed some issues (e.g QTBUG-39010) with restoring of section size after a section is no longer the last visible section (in stretchLastSection mode). Task-number: QTBUG-39010 Change-Id: Id47075b5a9dfeb250027374ecbd10eb8babbf9ef Reviewed-by: David Faure <david.faure@kdab.com>
Diffstat (limited to 'src/widgets/dialogs/qfiledialog.cpp')
0 files changed, 0 insertions, 0 deletions