diff options
author | Tor Arne Vestbø <tor.arne.vestbo@digia.com> | 2013-05-14 13:45:46 +0200 |
---|---|---|
committer | The Qt Project <gerrit-noreply@qt-project.org> | 2013-05-14 15:17:18 +0200 |
commit | 8be5103d29f9c91dc54e3f4b16605c8a49928a20 (patch) | |
tree | 0ff41e011f0092ae3b4d649f65d471b9f4860011 /src | |
parent | 27cbb58a92aaa629869f5b4dd05f2cefb4fc9f3a (diff) |
tst_qmdiarea: Prevent scrollbars from messing up expected viewport calculation
With scrollbars enabled we would get two resize events when tiling the windows.
First one with the expected viewport size, and then a second one with a bigger
viewport when the QMdiArea calculated that the space it set off for scrollbars
was not needed after all. Depending on whether or not the geometry propagation
of the platform plugin was synchronous or not, we would get one or both of the
events before evaluating the viewport size against the expected size, resulting
in flakeyness, and an expected fail on OS X.
We now explicitly disable the scrollbars during the test, and restore them for
the latter test that verifies that scrollbars show up when the area is resized
below the minimum size of the combined child widgets. This allows us to unskip
the expected failure on OS X, and should make the test less flakey.
Change-Id: Ief767456cfd79f5cd0bb0e220c40e5995674ff71
Reviewed-by: Gabriel de Dietrich <gabriel.dedietrich@digia.com>
Diffstat (limited to 'src')
0 files changed, 0 insertions, 0 deletions