Store ProjectBaseItem?

Aleix Pol aleixpol at kde.org
Fri Nov 30 00:25:28 UTC 2012


On Wed, Nov 28, 2012 at 9:43 PM, Niko Sams <niko.sams at gmail.com> wrote:

> Hi,
>
> I'd like to improve the test view by adding a tree showing the project
> structure. To do that
> I need a way for a ITestSuite to return the associated ProjectFileItem.
> I guess that I can't store a ProjectFileItem in ITestSuite as it might
> get deleted. How else
> could I implement that? Using the url I'll end up with multiple items
> (filesForUrl).
>
> Thanks,
> Niko
>
> --
> KDevelop-devel mailing list
> KDevelop-devel at kdevelop.org
> https://barney.cs.uni-potsdam.de/mailman/listinfo/kdevelop-devel
>

You can use ProjectModel::pathFromIndex and ProjectModel::pathToIndex. You
can safely store the path, in a QStringList.

Hope that helps!
Aleix
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.kde.org/pipermail/kdevelop-devel/attachments/20121130/d8793de0/attachment.html>


More information about the KDevelop-devel mailing list