void DateTimeGroup::changeEngineTimezone(const QString &newTimezone) { resetLastTimeSeen(); dataEngine("datetimegroup")->disconnectSource(currentTimezone(), this); dataEngine("datetimegroup")->connectSource(newTimezone, this, updateInterval(), intervalAlignment()); curtz=newTimezone; }
void Clock::connectToEngine() { resetLastTimeSeen(); Plasma::DataEngine* timeEngine = dataEngine("time"); timeEngine->disconnectSource(m_oldTimezone, this); m_oldTimezone = currentTimezone(); if (m_showSecondHand) { timeEngine->connectSource(currentTimezone(), this, 500); } else { timeEngine->connectSource(currentTimezone(), this, 6000, Plasma::AlignToMinute); } }
void Clock::changeEngineTimezone(const QString &oldTimezone, const QString &newTimezone) { resetLastTimeSeen(); dataEngine("time")->disconnectSource(oldTimezone, this); dataEngine("time")->connectSource(newTimezone, this, updateInterval(), intervalAlignment()); }