┌   ┐
54
└   ┘

summaryrefslogtreecommitdiff
path: root/src/kitemviews/kitemlistviewanimation_p.h
diff options
context:
space:
mode:
authorPeter Penz <[email protected]>2012-02-23 17:26:51 +0100
committerPeter Penz <[email protected]>2012-02-23 17:28:03 +0100
commit21a5a890b3010e591e139724d5c6f555df4481f9 (patch)
treefb48c65173c9163cdf81c2bc8bc064af3ac0eff3 /src/kitemviews/kitemlistviewanimation_p.h
parenta6627b9f2345eac9cc650aa9f87f9c69db8c707f (diff)
Whitespace cleanups and documentation fixes
Diffstat (limited to 'src/kitemviews/kitemlistviewanimation_p.h')
-rw-r--r--src/kitemviews/kitemlistviewanimation_p.h26
1 files changed, 26 insertions, 0 deletions
diff --git a/src/kitemviews/kitemlistviewanimation_p.h b/src/kitemviews/kitemlistviewanimation_p.h
index ecaa5ff8b..a3aceb0f5 100644
--- a/src/kitemviews/kitemlistviewanimation_p.h
+++ b/src/kitemviews/kitemlistviewanimation_p.h
@@ -31,6 +31,12 @@ class QGraphicsWidget;
class QPointF;
class QPropertyAnimation;
+/**
+ * @brief Internal helper class for KItemListView to animate the items.
+ *
+ * Supports item animations for moving, creating, deleting and resizing
+ * an item. Several applications can be applied to one item in parallel.
+ */
class LIBDOLPHINPRIVATE_EXPORT KItemListViewAnimation : public QObject
{
Q_OBJECT
@@ -52,12 +58,32 @@ public:
void setScrollOffset(qreal scrollOffset);
qreal scrollOffset() const;
+ /**
+ * Starts the animation of the type \a type for the widget \a widget. If an animation
+ * of the type is already running, this animation will be stopped before starting
+ * the new animation.
+ */
void start(QGraphicsWidget* widget, AnimationType type, const QVariant& endValue = QVariant());
+ /**
+ * Stops the animation of the type \a type for the widget \a widget.
+ */
void stop(QGraphicsWidget* widget, AnimationType type);
+
+ /**
+ * Stops all animations that have been applied to the widget \a widget.
+ */
void stop(QGraphicsWidget* widget);
+ /**
+ * @return True if the animation of the type \a type has been started
+ * for the widget \a widget..
+ */
bool isStarted(QGraphicsWidget *widget, AnimationType type) const;
+
+ /**
+ * @return True if any animation has been started for the widget.
+ */
bool isStarted(QGraphicsWidget* widget) const;
signals: