diff options
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; + + +} |