[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-panel-devel
Subject:    Re: update or repaint() slot in plasmoid and qtimer question
From:       "Aaron J. Seigo" <aseigo () kde ! org>
Date:       2008-06-30 22:18:27
Message-ID: 200806301618.28118.aseigo () kde ! org
[Download RAW message or body]

[Attachment #2 (multipart/signed)]


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


["signature.asc" (application/pgp-signature)]

_______________________________________________
Panel-devel mailing list
Panel-devel@kde.org
https://mail.kde.org/mailman/listinfo/panel-devel


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic