qt5base-lts/tests/auto
Thorbjørn Martsum 024a52d0d1 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>
2016-01-01 12:56:29 +00:00
..
android Fix typo in test results report for android 2015-07-28 21:16:19 +00:00
bic/data bic: Add 5.{1,2,3,4}.0 bic data for linux-gcc-amd64 2015-02-14 06:54:20 +00:00
cmake CMake: Fix regression with quoted OPTIONS parameter 2015-03-11 07:31:33 +00:00
compilerwarnings/data Fixed license headers 2015-02-17 18:46:09 +00:00
concurrent Tests: Remove CONFIG += parallel_test. 2015-09-05 07:16:50 +00:00
corelib Add qHash(std::pair) 2015-12-30 11:37:53 +00:00
dbus Tests: Remove empty init/cleanup slots, constructors and destructors. 2015-12-10 05:26:05 +00:00
gui Merge remote-tracking branch 'origin/5.6' into dev 2015-12-18 08:37:31 +01:00
guiapplauncher Fix path to examples part of tst_GuiAppLauncher 2015-02-13 07:28:15 +00:00
installed_cmake Add a unit test for testing Qt in its install location. 2013-07-02 23:08:54 +02:00
network Merge remote-tracking branch 'origin/5.6' into dev 2015-12-18 08:37:31 +01:00
opengl Remove insignificant flag for a platform not supported 2015-11-29 07:02:20 +00:00
other Merge remote-tracking branch 'origin/5.6' into dev 2015-12-18 08:37:31 +01:00
printsupport Merge remote-tracking branch 'origin/5.6' into dev 2015-11-18 09:01:51 +01:00
shared Fix kerned advances in QRawFont on OS X and Windows 2015-11-25 19:53:46 +00:00
sql Merge remote-tracking branch 'origin/5.6' into dev 2015-11-23 07:13:00 +01:00
testlib Merge remote-tracking branch 'origin/5.6' into dev 2015-12-18 08:37:31 +01:00
tools Merge remote-tracking branch 'origin/5.6' into dev 2015-12-18 08:37:31 +01:00
widgets QHeaderView - fix broken stretchLastSection 2016-01-01 12:56:29 +00:00
xml Merge remote-tracking branch 'origin/5.6' into dev 2015-11-04 20:18:14 +01:00
auto.pro Merge remote-tracking branch 'origin/5.6' into dev 2015-09-25 14:02:04 +02:00
network-settings.h Update copyright headers 2015-02-11 06:49:51 +00:00
qtest-config.h Update copyright headers 2015-02-11 06:49:51 +00:00
test.pl Update copyright headers 2015-02-11 06:49:51 +00:00