diff options
author | J-P Nurmi <jpnurmi@digia.com> | 2014-03-25 13:06:04 +0100 |
---|---|---|
committer | The Qt Project <gerrit-noreply@qt-project.org> | 2014-03-28 20:46:53 +0100 |
commit | 123ae472e2668a1f57f7c69a1a2a59336f83d06a (patch) | |
tree | 31111ec5bde8c835a65b9116fdc84ae464df91e9 /src/gui/painting/qblendfunctions.cpp | |
parent | 3c6c14c0bff9ceb10a64aa04fb33cf2476800e20 (diff) |
Fix disappearing transient scrollbars
When a transient scrollbar is already at the end and user attempts to
scroll further, the scrollbar is "flashed" to indicate that the scroll
area is already scrolled to the end. This is done so that the scrollbar
is first painted with a flag turned on to make it appear visible and
then again with the flag turned off to make qstyle start fading it out.
The previous code that relied on paint events to clear the flag was
error prone, and caused the scrollbars to get stuck in an inconsistent
state. This change makes sure that the flag gets cleared regardless of
whether a paint event in each state is received or not.
Task-number: QTBUG-37787
Change-Id: I907697c32cd4d55208a490804a221a5dd6bf7b0b
Reviewed-by: Gabriel de Dietrich <gabriel.dedietrich@digia.com>
Diffstat (limited to 'src/gui/painting/qblendfunctions.cpp')
0 files changed, 0 insertions, 0 deletions