┌   ┐
54
└   ┘

summaryrefslogtreecommitdiff
path: root/src/kitemviews/kitemlistview.h
diff options
context:
space:
mode:
authorPeter Penz <[email protected]>2011-08-20 13:52:36 +0200
committerPeter Penz <[email protected]>2011-08-20 13:54:20 +0200
commit074acd8009765f5e6ad5cb7f1887d50f4aea5a58 (patch)
treed182a0fc286dfe214bd33bd5b04a1d6605958685 /src/kitemviews/kitemlistview.h
parentdbe2152912cc58f1d2bfba187175ec0e4b3e4761 (diff)
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.
Diffstat (limited to 'src/kitemviews/kitemlistview.h')
-rw-r--r--src/kitemviews/kitemlistview.h12
1 files changed, 6 insertions, 6 deletions
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
{
@@ -255,12 +261,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
* and the current mouse position \a pos. As soon as \a pos is inside