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

List:       kde-panel-devel
Subject:    Re: integrating plasma into kdevelop's dashboard
From:       "Aaron J. Seigo" <aseigo () kde ! org>
Date:       2010-07-28 16:12:55
Message-ID: 201007280913.02491.aseigo () kde ! org
[Download RAW message or body]

[Attachment #2 (multipart/signed)]


On July 28, 2010, Aleix Pol wrote:
> I thought I could use that data engine approach but looks like that all
> projects would have to share the same DataEngine instance so I still need
> to tell them separately what project do they have to target somehow.

what you want is a mapping between a containment and a project, essentially,
 right?

assuming you have such a mapping somewhere, the DataEngine could have one
 source per Containment, keyed by the Containment's id.

then the Applet can, in it's init(),
 do:

dataEngine("org.kdevelop.projects").connectSource(QString::number(containmen
t()->id()), this);

then all that's needed is to update the DataEngine. this can be done in any
 number of ways, depending on the internals of your app.

-- 
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 Qt Development Frameworks


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

_______________________________________________
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