diff options
author | lonkaars <loek@pipeframe.xyz> | 2022-10-11 19:21:52 +0200 |
---|---|---|
committer | lonkaars <loek@pipeframe.xyz> | 2022-10-11 19:21:52 +0200 |
commit | fbb6a5a1570666ad283afac6e545c578e65475b8 (patch) | |
tree | 5efe464ac2c41ae9c932043451606bf2b3036db7 /client/timetest.cpp | |
parent | b455848ee62b06ba73801cff477c6ff214c4053e (diff) |
client merge done
Diffstat (limited to 'client/timetest.cpp')
-rw-r--r-- | client/timetest.cpp | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/client/timetest.cpp b/client/timetest.cpp new file mode 100644 index 0000000..2e575f2 --- /dev/null +++ b/client/timetest.cpp @@ -0,0 +1,18 @@ +#include "timetest.h" + +TimeTest::TimeTest(QObject *parent) : QObject(parent) +{ + timer = new QTimer(this); + connect(timer, SIGNAL(timeout()),this,SLOT(myfunction())); + timer->start(5000); +} + +qint16 TimeTest::myfunction() +{ + QTime time = QTime::currentTime(); + qint16 time_text = time.minute(); + + return time_text; + + +} |