From 4d1f30301b5669bd2497eeabc7cbc087be41f54a Mon Sep 17 00:00:00 2001 From: Aleix Pol <aleixpol@kde.org> Date: Thu, 29 Jul 2021 15:01:03 +0200 Subject: [PATCH] Make KWin::TimeLine::progress() public This way we can have animations that act slightly different in different parts of the animation --- src/libkwineffects/kwineffects.h | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/libkwineffects/kwineffects.h b/src/libkwineffects/kwineffects.h index de93144896..187c40f0a6 100644 --- a/src/libkwineffects/kwineffects.h +++ b/src/libkwineffects/kwineffects.h @@ -3755,7 +3755,11 @@ public: TimeLine &operator=(const TimeLine &other); -private: + /** + * @returns a value between 0 and 1 defining the progress of the timeline + * + * @since 5.23 + */ qreal progress() const; private: