void RuleWatch::_activateAndReschedule() { qDebug("RuleWatch::_activateAndReschedule"); QDateTime now = QDateTime::currentDateTime(); if (_isTargetRuleActivable()) { emit activateRule(*_targetRuleItem); } refreshWatch(now); }
NStopWatch::NStopWatch(QWidget *parent) : QFrame(parent), ui(new Ui::NStopWatch), _pause(false), _refreshTimer(NULL) { // GUI Configuration this->ui->setupUi(this); // Timer configuration this->_refreshTimer = new QTimer(this); this->_refreshTimer->setInterval(1000); connect(this->_refreshTimer, SIGNAL(timeout()), this, SLOT(refreshWatch())); }
void RuleWatch::refreshWatch() { QDateTime now = QDateTime::currentDateTime(); refreshWatch(now); }