[Bug 59002] Switch Header/Implementation does not work
Jens Dagerbo
jens.dagerbo at swipnet.se
Sun Apr 2 13:55:06 UTC 2006
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.
http://bugs.kde.org/show_bug.cgi?id=59002
------- Additional Comments From jens.dagerbo swipnet se 2006-04-02 13:54 -------
No.. I don't think that patch makes sense. I can see no reason to check the codemodel more than once, and you don't need to jump through hoops to find it to begin with.
Furthermore, the codemodel works on the project files, and you can get the list of project files simply through KDevProject::allFiles().
Seeing how you're already in the plugin part class, all you need is:
QStringList files = project()->allFiles();
Once you have a few files that look like possible candidates, you can try to find out if one of them is a likelier match than another.
More information about the KDevelop-devel
mailing list