From kde-panel-devel Tue Jan 24 08:46:21 2012 From: Sebastian =?utf-8?q?K=C3=BCgler?= Date: Tue, 24 Jan 2012 08:46:21 +0000 To: kde-panel-devel Subject: Re: QML/Data Engine Part 2 Message-Id: <201201240946.21868.sebas () kde ! org> X-MARC-Message: https://marc.info/?l=kde-panel-devel&m=132739497431177 On Tuesday, January 24, 2012 08:43:49 Eric Mesa wrote: > Here's an interesting little tidbit that might make this all finally work > correctly. > > If I add this in: > > def sources(self): > sources = ["1500"] > return sources > > to my engine - then whenever it's connected to, it grabs the data into the > engine. So it looks like the data was empty otherwise, even if I used > plasmaengineexplorer to make sure data was in there first. The question > is - is this the right thing to do? Or is there a way of telling it to > grab the data as it's requested by my plasmoid? When I add i the rest of > my sources it will take a while for the data to be available. plasmaengineexplorer starts a different process, so what happens in there doesn't happen in your plasmoid, they're entirely different things. You have to populate the dataengine from your plasmoid, using dataSource.connectSource(bla). -- sebas http://www.kde.org | http://vizZzion.org | GPG Key ID: 9119 0EF9 _______________________________________________ Plasma-devel mailing list Plasma-devel@kde.org https://mail.kde.org/mailman/listinfo/plasma-devel