[Marble-devel] How does LayerInterface ask for an update?

Kishore Jonnalagadda kitts.mailinglists at gmail.com
Sun Aug 14 08:35:54 UTC 2011


On Sunday 14 Aug 2011 9:45:01 AM Torsten Rahn wrote:
> On Friday, 12. August 2011 19:20:29 Bernhard Beschow wrote:
> > > Am i misusing the API? I do not want to create a marble plugin and
> > > install it into the marble install directories for it to work
> > > properly.
> > > Is there a solution?
> >
> > 
> >
> > Yes, there is a solution  :
> > 
> >
> > You could add a signal to your LayerInterface implementation, e.g.
> > "requestUpdate()" and call that instead of MarbleWidget::update(). When
> > adding your layer to MarbleWidget, you connect that signal to
> > MarbleWidget::update().
> 
> Should we add that to the interface by default?
> 
> Just wondering,

IMHO something to that effect is necessary. Also i noticed a similar issue with 
MarbleGraphicsItem. While it has an update method that propagates up the 
parent hierarchy it just stops at the top level (parent less item) while IMHO 
it should propagate to all the views that it is associated with. Maybe via the 
"scene" if not directly to the views.
-- 
Cheers!
Kishore


More information about the Marble-devel mailing list