[kgraphviewer-devel] Making kgraphviewer_part a full library

Milian Wolff mail at milianw.de
Fri Apr 30 21:40:25 CEST 2010


Gaël (aka Kleag), 30.04.2010:
> Hello,
> 
> As said before, I'm working on making the kgraphviewer part a full library.
> Thus, I created a namespace for it and make it use a d pointer.
> 
> Thus arises a problem for the kgrapheditor program. It was using an inline
> method to access the internal graph (graph() defined as m_widget->graph()).
> But now, m_widget is inside the private class and cannot be accessed from
> the part header. And if not inline, the program cannot link anymore as it
> is not linked with the part library.
> 
> Well, this was a hack and doing things cleanly make it not work anymore.
> 
> I see only one solution to this problem: creating a real library containing
> the DotGraphView widget that would be used by programs like kgrapheditor
> that must access the internals and a part used to display the graphs in
> applications like kgraphviewer that don't use the internals.

Maybe I don't get the question, but why not simply add a getter that returns 
what d_ptr->m_graph->graph() returns?


-- 
Milian Wolff
mail at milianw.de
http://milianw.de
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 197 bytes
Desc: This is a digitally signed message part.
Url : http://mail.kde.org/pipermail/kgraphviewer-devel/attachments/20100430/cf87bcb9/attachment.sig 


More information about the kgraphviewer-devel mailing list