예제 #1
0
void DateTimeGroup::changeEngineTimezone(const QString &newTimezone)
{
	resetLastTimeSeen();
	dataEngine("datetimegroup")->disconnectSource(currentTimezone(), this);  
	dataEngine("datetimegroup")->connectSource(newTimezone, this, updateInterval(), intervalAlignment());
	curtz=newTimezone;
}
예제 #2
0
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)));
}
예제 #3
0
void Clock::changeEngineTimezone(const QString &oldTimezone, const QString &newTimezone)
{
    resetLastTimeSeen();
    dataEngine("time")->disconnectSource(oldTimezone, this);
    dataEngine("time")->connectSource(newTimezone, this, updateInterval(), intervalAlignment());
}
예제 #4
0
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()));
}