mirror of
https://github.com/leozide/leocad.git
synced 2026-10-26 22:10:32 +00:00
20 lines
449 B
C++
20 lines
449 B
C++
#pragma once
|
|
|
|
class lcSpinnerWidget : public QWidget
|
|
{
|
|
public:
|
|
lcSpinnerWidget(QWidget* Parent = nullptr);
|
|
|
|
protected:
|
|
void paintEvent(QPaintEvent* Event) override;
|
|
void showEvent(QShowEvent* Event) override;
|
|
void hideEvent(QHideEvent* Event) override;
|
|
|
|
private:
|
|
static constexpr qreal OrbitRadius = 7.0; // Logical pixels from the center.
|
|
static constexpr qreal DiscRadius = 3; // Logical pixels.
|
|
|
|
QTimer mTimer;
|
|
QElapsedTimer mElapsed;
|
|
};
|