On Wed, Nov 28, 2012 at 9:43 PM, Niko Sams <span dir="ltr"><<a href="mailto:niko.sams@gmail.com" target="_blank">niko.sams@gmail.com</a>></span> wrote:<br><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">

Hi,<br>
<br>
I'd like to improve the test view by adding a tree showing the project<br>
structure. To do that<br>
I need a way for a ITestSuite to return the associated ProjectFileItem.<br>
I guess that I can't store a ProjectFileItem in ITestSuite as it might<br>
get deleted. How else<br>
could I implement that? Using the url I'll end up with multiple items<br>
(filesForUrl).<br>
<br>
Thanks,<br>
Niko<br>
<span class="HOEnZb"><font color="#888888"><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" target="_blank">https://barney.cs.uni-potsdam.de/mailman/listinfo/kdevelop-devel</a><br>
</font></span></blockquote></div><br><div>You can use ProjectModel::pathFromIndex and ProjectModel::pathToIndex. You can safely store the path, in a QStringList.</div><div><br></div><div>Hope that helps!</div><div>Aleix</div>