qt/LedOK/player/eleanaclock.h

25 lines
558 B
C
Raw Normal View History

2022-01-20 10:08:17 +08:00
#ifndef ELEANACLOCK_H
#define ELEANACLOCK_H
#include <QWidget>
#include <QTimeZone>
#include <QPainterPath>
class EleAnaClock : public QWidget {
Q_OBJECT
public:
2022-08-25 18:37:24 +08:00
explicit EleAnaClock(QString path, const QJsonObject &layer, QWidget *parent = nullptr);
2022-01-20 10:08:17 +08:00
void cal();
QTimeZone timeZone;
QPixmap img;
QColor pinHourColor, pinMinColor, pinSecColor;
QPainterPath sPath, mPath, hPath;
int timerId = 0;
protected:
void paintEvent(QPaintEvent *) override;
void timerEvent(QTimerEvent *) override;
};
#endif // ELEANACLOCK_H