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:
parent
41567c5bb9
commit
d0078b6574
10 changed files with 123 additions and 65 deletions
16
Clock/ClockWidget.h
Normal file
16
Clock/ClockWidget.h
Normal 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 };
|
||||
};
|
||||
|
Loading…
Add table
Add a link
Reference in a new issue