예제 #1
0
void
RuleWatch::_activateAndReschedule() {
    qDebug("RuleWatch::_activateAndReschedule");

    QDateTime now = QDateTime::currentDateTime();

    if (_isTargetRuleActivable()) {
        emit activateRule(*_targetRuleItem);
    }
    refreshWatch(now);
}
예제 #2
0
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()));
}
예제 #3
0
void
RuleWatch::refreshWatch() {
    QDateTime now = QDateTime::currentDateTime();
    refreshWatch(now);
}