[Kstars-devel] KDE/kdeedu/kstars/kstars/skycomponents

Thomas Kabelmann thomas.kabelmann at gmx.de
Wed Oct 26 18:56:09 CEST 2005


Hi Jason,
> SkyComposite: Finally attempting to compile: skycomposite.o now
> compiles!  One down, 27 to go.
Wow, this sounds good :-) My kdelibs svn tree is currently broken, so that I 
can't compile any KDE4 stuff.

> Added a static non-member function to skycomponent: "static bool
> alwaysVisible() { return true; }".  Need this because SkyComposite ctor
> calls its parent SkyComponent ctor, and in this case the visibleMethod
> argument does not make sense.  As a fix, I added the above
> static function as the default value for the (*visibleMethod)()
> argument.  Not a very elegant solution, I guess.  Any better ideas?
Nice catch. I guess there is no other good solution. But why not make 
alwaysVisible() a static member function?

Regards,
Thomas


More information about the Kstars-devel mailing list