Store ProjectBaseItem?
Milian Wolff
mail at milianw.de
Fri Nov 30 13:40:11 UTC 2012
On Friday 30 November 2012 01:25:28 Aleix Pol wrote:
> 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.
Horribly inefficient. Use the IndexedString you get from
ProjectFileItem::indexed().
Cheers
--
Milian Wolff
mail at milianw.de
http://milianw.de
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 198 bytes
Desc: This is a digitally signed message part.
URL: <http://mail.kde.org/pipermail/kdevelop-devel/attachments/20121130/1f60e8dc/attachment.sig>
More information about the KDevelop-devel
mailing list