示例#1
0
void TimeControl::doTimeTick()
{
    clockChanged(QTimeString::currentAMPM());
    dateFormatChanged();

    m_timer->stop();
    QTime time = QTime::currentTime();
    m_timer->start((60 - time.second()) * 1000 + 500, 
                   QtopiaTimer::PauseWhenInactive);
}
示例#2
0
void QAbstractClipAnimator::setClock(QClock *clock)
{
    Q_D(QAbstractClipAnimator);
    if (d->m_clock == clock)
        return;

    if (d->m_clock)
        d->unregisterDestructionHelper(d->m_clock);

    if (clock && !clock->parent())
        clock->setParent(this);
    d->m_clock = clock;

    if (d->m_clock)
        d->registerDestructionHelper(d->m_clock, &QAbstractClipAnimator::setClock, d->m_clock);
    emit clockChanged(clock);
}
示例#3
0
void TimeControl::systemWaking()
{
    clockChanged(QTimeString::currentAMPM());
    dateFormatChanged();
}