summaryrefslogtreecommitdiff
path: root/Widgets/ClockWidget.h
blob: a7326984ecfed79f98fff4ce8f0ae86e341d0bd0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
#pragma once

#include "Widget.h"

class ClockWidget final : public Widget {
public:
    explicit ClockWidget(Widget* parent = nullptr);
    virtual ~ClockWidget() override;

private:
    virtual void paintEvent(PaintEvent&) override;
    virtual void timerEvent(TimerEvent&) override;

    dword m_lastSeenTimestamp { 0 };
};