Question about way of adding timezones support to clock
Rafał Miłecki
zajec5 at gmail.com
Tue Mar 18 09:38:32 CET 2008
2008/3/18, Rafał Miłecki <zajec5 at gmail.com>:
> Of course I can make
>
> void Clock::updateToolTip() {
> Plasma::ToolTipData tipData;
> tipData.mainText = currentTime();
> setToolTip(tipData);
> }
>
> but what about updating this tooltip? I still need to have some source
> connected plus I need this source for updaing clock itself (not only
> it's tooltip).
Let's forget about updating time in clock for a moment (let's focus on
tooltip). I could use
void Clock::updateToolTip() {
Plasma::ToolTipData tipData;
tipData.mainText = currentTime();
setToolTip(tipData);
dataEngine("time")->connectSource(m_timezone, this,
updateInterval(), intervalAlignment());
}
but still I don't have anything like removedToolTip() to use
void Clock::removedToolTip() {
dataEngine("time")->disconnectSource(m_timezone, this);
}
--
Rafał Miłecki
More information about the Panel-devel
mailing list