clock.h
388 Bytes
#ifndef CLOCK_H
#define CLOCK_H
#include <QWidget>
#include <QTime>
#include <QImage>
class Clock : public QWidget
{
Q_OBJECT
public:
explicit Clock(QWidget *parent = 0);
signals:
public slots:
protected:
void paintEvent(QPaintEvent *event);
private slots:
void checkUpdate();
private:
bool ticking;
QTime last;
QImage background;
};
#endif // CLOCK_H