Well, we could just use the setProjectProperty method to pass the project name as well.<br><br>Aleix<br><br><div><span class="gmail_quote">On 9/30/07, <b class="gmail_sendername">Andreas Pakulat</b> <<a href="mailto:apaku@gmx.de">
apaku@gmx.de</a>> wrote:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">On 30.09.07 09:03:28, Matt Rogers wrote:<br>> On Sunday 30 September 2007 04:51:02 am Andreas Pakulat wrote:
<br>> > Hi,<br>> ><br>> > as Aleix pointed out its currently quite ugly to create custom<br>> > ProjectItem's for your buildmanager. The reason is that you'd have to<br>> > subclass KDevelop::ProjectItem+<custom folder item> resulting in this:
<br>> ><br>> > class QMakeProjectItem : public ProjectItem, QMakeFolderItem<br>> > {<br>> > };<br>> ><br>> > The reason why this is ugly because the inheritance graph for this is<br>> > now:
<br>> ><br>> >              ProjectFolderItem<br>> ><br>> >           ----------+-------------<br>> ><br>> >    QMakeFolderItem         ProjectItem<br>> ><br>> >           ----------+-------------
<br>> ><br>> >              QMakeProjectItem<br>> ><br>> > (not 100% correct, I left out the ProjectBuildFolderItem)<br>> ><br>> > So we have that dreaded diamond-shape inheritance :(<br>
> ><br>><br>> Why do we have ProjectItem to begin with? Is there some reason we can't just<br>> add an isProjectRoot() function to ProjectFolderItem?<br><br>See Aleix answer, the reason is currently that for a project item the
<br>text in the view is the projects name instead of the path of the folder<br>like for normal folder items.<br><br>So we could do what you propose, but in that case setProjectRoot( bool )<br>would do a setText( project()->name() ) behind the scenes. If thats ok,
<br>then yes thats a good solution of the problem.<br><br>Andreas<br><br>--<br>Another good night not to sleep in a eucalyptus tree.<br><br>_______________________________________________<br>KDevelop-devel mailing list<br>
<a href="mailto:KDevelop-devel@kdevelop.org">KDevelop-devel@kdevelop.org</a><br><a href="https://barney.cs.uni-potsdam.de/mailman/listinfo/kdevelop-devel">https://barney.cs.uni-potsdam.de/mailman/listinfo/kdevelop-devel</a>
<br></blockquote></div><br>