From 074acd8009765f5e6ad5cb7f1887d50f4aea5a58 Mon Sep 17 00:00:00 2001 From: Peter Penz Date: Sat, 20 Aug 2011 13:52:36 +0200 Subject: Fix possible endless recursion when using the rubberband If the autoscrolling has been activated when using the rubberband, it was possible that an endless recursion occured as the autoscrolling triggered a change of the rubberband which triggered a change of the autoscrolling etc. --- src/kitemviews/kitemlistview.h | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'src/kitemviews/kitemlistview.h') diff --git a/src/kitemviews/kitemlistview.h b/src/kitemviews/kitemlistview.h index e874957de..1ff56babd 100644 --- a/src/kitemviews/kitemlistview.h +++ b/src/kitemviews/kitemlistview.h @@ -191,6 +191,12 @@ private slots: void slotRubberBandEndPosChanged(); void slotRubberBandActivationChanged(bool active); + /** + * Emits the signal scrollTo() with the corresponding target offset if the current + * mouse position is above the autoscroll-margin. + */ + void triggerAutoScrolling(); + private: enum LayoutAnimationHint { @@ -254,12 +260,6 @@ private: */ void updateWidgetProperties(KItemListWidget* widget, int index); - /** - * Emits the signal scrollTo() with the corresponding target offset if the current - * mouse position is above the autoscroll-margin. - */ - void triggerAutoScrolling(); - /** * Helper function for triggerAutoScrolling(). Returns the scroll increment * that should be added to the offset() based on the available size \a size -- cgit v1.3.1