From dccc435d8be08fbd63f325beefb2f6f99237819c Mon Sep 17 00:00:00 2001 From: Marco Martin Date: Fri, 7 May 2010 12:32:35 +0000 Subject: [PATCH] deprecate kineticscroll functions, remove one that was added only for 4.5 svn path=/trunk/KDE/kdelibs/; revision=1123943 --- animator.h | 20 ++++++-------------- deprecated/animator.cpp | 6 ------ 2 files changed, 6 insertions(+), 20 deletions(-) diff --git a/animator.h b/animator.h index ac4969baa..4a09066ba 100644 --- a/animator.h +++ b/animator.h @@ -197,37 +197,29 @@ public: /** * Register a widget as a scrolling widget. - * The widget will get animate scrolling with mouse dragging and mouse wheel. - * It must provide - * scrollValue, viewportGeometry and pageSize properties + * This function is deprecated: + * use a ScrollWidget, with setWidget() as your widget instead. * * @param widget the widget that offers a scrolling behaviour * @since 4.4 */ - void registerScrollingManager(QGraphicsWidget *widget); + KDE_DEPRECATED void registerScrollingManager(QGraphicsWidget *widget); /** * unregister the scrolling manager of a certain widget + * This function is deprecated: use ScrollWidget instead. * * @param widget the widget we don't want no longer animated * @since 4.4 */ - void unregisterScrollingManager(QGraphicsWidget *widget); - - /** - * Stop any scrolling that could be happening on widget - * - * @param the widget that must stop animating - * @since 4.5 - */ - void stopScrollingWidget(QGraphicsWidget *widget); + KDE_DEPRECATED void unregisterScrollingManager(QGraphicsWidget *widget); Q_SIGNALS: void animationFinished(QGraphicsItem *item, Plasma::Animator::Animation anim); void movementFinished(QGraphicsItem *item); void elementAnimationFinished(int id); void customAnimationFinished(int id); - void scrollStateChanged(QGraphicsWidget *widget, QAbstractAnimation::State newState, + KDE_DEPRECATED void scrollStateChanged(QGraphicsWidget *widget, QAbstractAnimation::State newState, QAbstractAnimation::State oldState); protected: diff --git a/deprecated/animator.cpp b/deprecated/animator.cpp index bdf98dd3f..f57500b54 100644 --- a/deprecated/animator.cpp +++ b/deprecated/animator.cpp @@ -782,12 +782,6 @@ void Animator::unregisterScrollingManager(QGraphicsWidget *widget) } } -void Animator::stopScrollingWidget(QGraphicsWidget *widget) -{ - if (d->scrollingManagers.contains(widget)) { - d->scrollingManagers.value(widget)->stop(); - } -} } // namespace Plasma