void DateTimeGroup::changeEngineTimezone(const QString &newTimezone) { resetLastTimeSeen(); dataEngine("datetimegroup")->disconnectSource(currentTimezone(), this); dataEngine("datetimegroup")->connectSource(newTimezone, this, updateInterval(), intervalAlignment()); curtz=newTimezone; }
void Clock::init() { ClockApplet::init(); dataEngine("time")->connectSource(currentTimezone(), this, updateInterval(), intervalAlignment()); connect(Plasma::Theme::defaultTheme(), SIGNAL(themeChanged()), this, SLOT(updateColors())); connect(KGlobalSettings::self(), SIGNAL(appearanceChanged()), SLOT(resetSize())); connect(KGlobalSettings::self(), SIGNAL(settingsChanged(int)), SLOT(updateClock(int))); }
void Clock::changeEngineTimezone(const QString &oldTimezone, const QString &newTimezone) { resetLastTimeSeen(); dataEngine("time")->disconnectSource(oldTimezone, this); dataEngine("time")->connectSource(newTimezone, this, updateInterval(), intervalAlignment()); }
void DateTimeGroup::init(){ configChanged(); dataEngine("datetimegroup")->connectSource(currentTimezone(), this, updateInterval(), intervalAlignment() ); connect(Plasma::Theme::defaultTheme(), SIGNAL(themeChanged()), this, SLOT(updateColors())); connect(KGlobalSettings::self(), SIGNAL(appearanceChanged()), SLOT(resetSize())); }