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
Description: This is a digitally signed message part.
_______________________________________________ Plasma-devel mailing list Plasma-devel@kde.org https://mail.kde.org/mailman/listinfo/plasma-devel