#ifndef TCIRCULARSPINNER_H #define TCIRCULARSPINNER_H #include #include #include #include #include class THELIBSSHARED_EXPORT tCircularSpinner : public QWidget { Q_OBJECT public: explicit tCircularSpinner(QWidget *parent = nullptr); ~tCircularSpinner(); QSize sizeHint() const; signals: public slots: void appear(); void disappear(); private: void paintEvent(QPaintEvent* event); int rotation = 0; int arcLength = 16 * 15; QTimer* rotationTimer; }; #endif // TCIRCULARSPINNER_H