-
-
Notifications
You must be signed in to change notification settings - Fork 224
Expand file tree
/
Copy pathtbasictimer.cpp
More file actions
34 lines (27 loc) · 676 Bytes
/
Copy pathtbasictimer.cpp
File metadata and controls
34 lines (27 loc) · 676 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
/* Copyright (c) 2015-2019, AOYAMA Kazuharu
* All rights reserved.
*
* This software may be used and distributed according to the terms of
* the New BSD License, which is incorporated herein by reference.
*/
#include "tbasictimer.h"
#include "tsystemglobal.h"
TBasicTimer::TBasicTimer(QObject *parent) :
QObject(parent),
QBasicTimer()
{
}
void TBasicTimer::start()
{
tSystemDebug("TBasicTimer::start");
if (_receiver && _interval > 0) {
QBasicTimer::start(_interval, _receiver);
}
}
void TBasicTimer::start(int msec)
{
if (_receiver && msec > 0) {
_interval = msec;
QBasicTimer::start(_interval, _receiver);
}
}