diff options
| author | Simon Paul St James <[email protected]> | 2008-10-31 21:45:51 +0000 |
|---|---|---|
| committer | Simon Paul St James <[email protected]> | 2008-10-31 21:45:51 +0000 |
| commit | dea4444c4a8d615c68bd6d2b05124cc8d66bd6d7 (patch) | |
| tree | 6caf091c15243438ab7c8a26a993fe10980f2c2f /src/dolphindetailsview.h | |
| parent | 76376eb22dd1f6414b98ceda142349ec0903a483 (diff) | |
Be better behaved in the presence of scroll events in the middle of an elastic band selection by storing the last selection elastic band in view (rather than viewport) coordinates.
svn path=/trunk/KDE/kdebase/apps/; revision=878316
Diffstat (limited to 'src/dolphindetailsview.h')
| -rw-r--r-- | src/dolphindetailsview.h | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/src/dolphindetailsview.h b/src/dolphindetailsview.h index f564773bc..996c87793 100644 --- a/src/dolphindetailsview.h +++ b/src/dolphindetailsview.h @@ -191,8 +191,8 @@ private: { ElasticBand(); - // Elastic band coordinates are relative to the origin of the - // view, not the viewport. + // Elastic band origin and destination coordinates are relative to t + // he origin of the view, not the viewport. bool show; QPoint origin; QPoint destination; @@ -200,10 +200,11 @@ private: // Optimisation mechanisms for use with elastic band selection. // Basically, allow "incremental" updates to the selection based // on the last elastic band shape. - QRect oldSelectionRect; + QPoint lastSelectionOrigin; + QPoint lastSelectionDestination; // If true, compute the set of selected elements from scratch (slower) - bool ignoreOldInfo; + bool ignoreOldInfo; // Edges of the filenames that are closest to the edges of oldSelectionRect. // Used to decide whether horizontal changes in the elastic band are likely |
