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

List:       kde-panel-devel
Subject:    Re: QML/Data Engine Part 2
From:       Sebastian =?utf-8?q?K=C3=BCgler?= <sebas () kde ! org>
Date:       2012-01-24 8:46:21
Message-ID: 201201240946.21868.sebas () kde ! org
[Download RAW message or body]

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
[prev in list] [next in list] [prev in thread] [next in thread] 

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