X-Git-Url: https://cloud.milkyroute.net/gitweb/dolphin.git/blobdiff_plain/38c34eeca315c7be58e65d4d3fb72aaf7b866719..cebcf8db:/src/kitemviews/kitemlistwidget.h diff --git a/src/kitemviews/kitemlistwidget.h b/src/kitemviews/kitemlistwidget.h index 4634ecc0d..fdfe5e78a 100644 --- a/src/kitemviews/kitemlistwidget.h +++ b/src/kitemviews/kitemlistwidget.h @@ -22,7 +22,8 @@ class KItemListView; class QPropertyAnimation; /** - * @brief Provides information for creating an instance of KItemListWidget. + * @brief Provides generic information for all KItemListWidgets + * for which the construction of any specific KItemListWidget isn't required. * * KItemListView only creates KItemListWidget instances for the visible * area. For calculating the required size of all items the expected @@ -187,6 +188,12 @@ public: */ virtual QPixmap createDragPixmap(const QStyleOptionGraphicsItem *option, QWidget *widget = nullptr); + /** + * Starts an animation that makes clear that the item will be activated soon. + * @param timeUntilActivation time in milliseconds until the item will activate + */ + virtual void startActivateSoonAnimation(int timeUntilActivation); + Q_SIGNALS: void roleEditingCanceled(int index, const QByteArray &role, const QVariant &value); void roleEditingFinished(int index, const QByteArray &role, const QVariant &value); @@ -235,7 +242,6 @@ protected: const KItemListWidgetInformant *informant() const; private Q_SLOTS: - void slotHoverAnimationFinished(); void slotHoverSequenceTimerTimeout(); private: @@ -263,7 +269,6 @@ private: qreal m_hoverOpacity; mutable QPixmap *m_hoverCache; - QPropertyAnimation *m_hoverAnimation; int m_hoverSequenceIndex; QTimer m_hoverSequenceTimer;