TDE 0.1.0
 
Loading...
Searching...
No Matches
clock.hpp
Go to the documentation of this file.
1
12#pragma once
13
14#include <qlabel.h>
15
16#include "tde/common.hpp"
17
18namespace tde::widgets::tray {
19
24class TDE_PUBLIC Clock : public QLabel
25{
26 Q_OBJECT
27
28public:
29 constexpr static int TIME_UPDATE_INTERVAL =
30 1000;
32private:
33 QString _format;
34 QTimer* _timer;
35
36public:
43 Clock(QString format, QWidget* parent = nullptr);
44 ~Clock() override = default;
45
46private slots:
51 void _on_timeout();
52};
53
54}
Clock label for tray.
Definition clock.hpp:25
Some utility macros.