From 1becca7519b0a8ab2babe8e74288d2bb9c9d72d9 Mon Sep 17 00:00:00 2001 From: peri4 Date: Sun, 10 Nov 2024 21:29:32 +0300 Subject: [PATCH] small changes of BusyIcon --- libs/widgets/busy_icon.cpp | 1 - libs/widgets/busy_icon.h | 6 +++--- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/libs/widgets/busy_icon.cpp b/libs/widgets/busy_icon.cpp index e3bd93f..d64e439 100644 --- a/libs/widgets/busy_icon.cpp +++ b/libs/widgets/busy_icon.cpp @@ -15,7 +15,6 @@ BusyIcon::~BusyIcon() {} void BusyIcon::start() { stop(); - ang = 0; timer = startTimer(25); } diff --git a/libs/widgets/busy_icon.h b/libs/widgets/busy_icon.h index bb61deb..5dd4138 100644 --- a/libs/widgets/busy_icon.h +++ b/libs/widgets/busy_icon.h @@ -33,9 +33,9 @@ public: void setCircleWidth(qreal s); private: - QSize sizeHint() const; - void timerEvent(QTimerEvent *); - void paintEvent(QPaintEvent *); + QSize sizeHint() const override; + void timerEvent(QTimerEvent *) override; + void paintEvent(QPaintEvent *) override; QIcon icon_; QImage image;