update or repaint() slot in plasmoid and qtimer question

Aaron J. Seigo aseigo at kde.org
Tue Jul 1 00:18:27 CEST 2008


On Monday 30 June 2008, Aaron J. Seigo wrote:
> dataEngine("systemmonitor")->connectSource("cpu/cpu0/clock", this, 1000);

or for even MORE magic:

QGraphicsLinearLayout *layout = new QGraphicsLinearLayout(this);
Plasma::Label *label = new Plasma::Label(this);
layout->addItem(label);
dataEngine("systemmonitor")->connectSource("cpu/cpu0/clock", label, 1000);

and you're done.

-- 
Aaron J. Seigo
humru othro a kohnu se
GPG Fingerprint: 8B8B 2209 0C6F 7C47 B1EA  EE75 D6B7 2EB1 A7F1 DB43

KDE core developer sponsored by Trolltech

-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 194 bytes
Desc: This is a digitally signed message part.
Url : http://mail.kde.org/pipermail/panel-devel/attachments/20080630/7678bf62/attachment.pgp 


More information about the Panel-devel mailing list