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
18
namespace
tde::widgets::tray {
19
24
class
TDE_PUBLIC
Clock
:
public
QLabel
25
{
26
Q_OBJECT
27
28
public
:
29
constexpr
static
int
TIME_UPDATE_INTERVAL =
30
1000;
32
private
:
33
QString _format;
34
QTimer* _timer;
35
36
public
:
43
Clock
(QString format, QWidget* parent =
nullptr
);
44
~Clock
()
override
=
default
;
45
46
private
slots:
51
void
_on_timeout();
52
};
53
54
}
tde::widgets::tray::Clock
Clock label for tray.
Definition
clock.hpp:25
common.hpp
Some utility macros.
include
tde
widgets
tray
clock.hpp
Generated by
1.9.8