1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-26 16:37:47 +00:00

Clock: Turns the clock window from guitest2 into a separate program.

We can't not have a desktop clock app. :^)
This commit is contained in:
Andreas Kling 2019-02-05 09:44:13 +01:00
parent 41567c5bb9
commit d0078b6574
10 changed files with 123 additions and 65 deletions

16
Clock/ClockWidget.h Normal file
View file

@ -0,0 +1,16 @@
#pragma once
#include <LibGUI/GWidget.h>
class ClockWidget final : public GWidget {
public:
explicit ClockWidget(GWidget* parent = nullptr);
virtual ~ClockWidget() override;
private:
virtual void paint_event(GPaintEvent&) override;
virtual void timer_event(GTimerEvent&) override;
time_t m_last_time { 0 };
};