deprecate kineticscroll functions,

remove one that was added only for 4.5

svn path=/trunk/KDE/kdelibs/; revision=1123943
This commit is contained in:
Marco Martin 2010-05-07 12:32:35 +00:00
parent 6dedeb57f6
commit dccc435d8b
2 changed files with 6 additions and 20 deletions

View File

@ -197,37 +197,29 @@ public:
/** /**
* Register a widget as a scrolling widget. * Register a widget as a scrolling widget.
* The widget will get animate scrolling with mouse dragging and mouse wheel. * This function is deprecated:
* It must provide * use a ScrollWidget, with setWidget() as your widget instead.
* scrollValue, viewportGeometry and pageSize properties
* *
* @param widget the widget that offers a scrolling behaviour * @param widget the widget that offers a scrolling behaviour
* @since 4.4 * @since 4.4
*/ */
void registerScrollingManager(QGraphicsWidget *widget); KDE_DEPRECATED void registerScrollingManager(QGraphicsWidget *widget);
/** /**
* unregister the scrolling manager of a certain 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 * @param widget the widget we don't want no longer animated
* @since 4.4 * @since 4.4
*/ */
void unregisterScrollingManager(QGraphicsWidget *widget); KDE_DEPRECATED 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);
Q_SIGNALS: Q_SIGNALS:
void animationFinished(QGraphicsItem *item, Plasma::Animator::Animation anim); void animationFinished(QGraphicsItem *item, Plasma::Animator::Animation anim);
void movementFinished(QGraphicsItem *item); void movementFinished(QGraphicsItem *item);
void elementAnimationFinished(int id); void elementAnimationFinished(int id);
void customAnimationFinished(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); QAbstractAnimation::State oldState);
protected: protected:

View File

@ -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 } // namespace Plasma