<div><div class="gmail_quote">On Wed, Jun 30, 2010 at 5:44 PM, Andreas Pakulat <span dir="ltr"><<a href="mailto:apaku@gmx.de">apaku@gmx.de</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
<div class="im">On 30.06.10 16:16:45, Aleix Pol wrote:<br>
> On Sun, Jun 27, 2010 at 3:02 PM, Andreas Pakulat <<a href="mailto:apaku@gmx.de">apaku@gmx.de</a>> wrote:<br>
</div><div class="im">> > just to let you know, I've just merged the rewrite of the projectmodel<br>
> > API I've worked on into master. Its now indepdenent of any GUI<br>
> > dependencies and doesn't use QStandardItemModel anymore but custom<br>
> > items. This also allowed to minimize the API a bit and make it more<br>
> > specific (a real rename function instead of some hidden way of using<br>
> > setData).<br>
> ><br>
> > I couldn't see any regressions and we do have a quite good unit-test for<br>
> > it too. (it covers around 60% currently IIRC).<br>
> ><br>
> > It'll hopefully also make it easier to change the actual implementation<br>
> > to a ref-counted version or something other. I'm not sure thats really<br>
> > necessary though, it should be enough if places that do store<br>
> > item-pointers also listen to model-signals to find out wether their item<br>
> > is deleted and then remove it from their internal storage.<br>
><br>
</div><div class="im">> Hey,<br>
> I've seen that there's some inconsistency with the model naming now.<br>
><br>
> When the project is imported for the first time i get a root item called<br>
> "KDevelop" (for example) and the next times it's called "kdevelop" (lower<br>
> case). It's kind of annoying because whatever you configure with project<br>
> model paths gets broken.<br>
<br>
</div>Hmm, why is it called KDevelop first? Do you use a setText call<br>
somewhere? ProjectFolderItem uses the last part of the url as text<br>
whenever the url is being provided (i.e. setUrl or constructor).<br>
<br>
I guess we could introduce a new item type "ProjectRootItem" that is a<br>
ProjectFolderItem subclass and uses project()->name() for text() instead<br>
of url().fileName().<br>
<br>
That solution would have the benefit of also creating a more robust way<br>
of checking wether a given item is a root-level item (as parent() also<br>
returns 0 if its just been created and not attached to a parent yet).<br>
<br>
Andreas<br>
<br>
--<br>
This life is yours. Some of it was given to you; the rest, you made yourself.<br></blockquote><div><br></div>Yes, cmakemanager.cpp:438.<div>It's set to the project name, which makes sense because that's why we have a project name at all. </div>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
<font color="#888888"><br>
--<br>
</font><div><div></div><div class="h5">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" target="_blank">https://barney.cs.uni-potsdam.de/mailman/listinfo/kdevelop-devel</a><br>
</div></div></blockquote></div><br></div>