From 042a642f6565700ea60765be25564ec2e7ec4e66 Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Fri, 4 Dec 2020 21:49:22 +0530 Subject: [PATCH] ... --- src/calibre/gui2/progress_indicator/QProgressIndicator.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/calibre/gui2/progress_indicator/QProgressIndicator.h b/src/calibre/gui2/progress_indicator/QProgressIndicator.h index 1f857b4c88..3874a88198 100644 --- a/src/calibre/gui2/progress_indicator/QProgressIndicator.h +++ b/src/calibre/gui2/progress_indicator/QProgressIndicator.h @@ -50,7 +50,7 @@ public: ~SpinAnimator() { m_animation.stop(); m_animation.clear(); } void start() { m_animation.start(); } void stop() { m_animation.stop(); m_arc_length = arc_length_max; m_arc_rotation = 0; m_overall_rotation = 0; notify_of_update(); } - bool is_running() { return m_animation.state() == QAbstractAnimation::Running; } + bool is_running() const { return m_animation.state() == QAbstractAnimation::Running; } void draw(QPainter &painter, QRect bounds, const QColor &color, const float thickness=0.f) { m_has_pending_updates = false; painter.save();