[Bug 59002] Switch Header/Implementation does not work

Jens Dagerbo jens.dagerbo at swipnet.se
Sun Apr 2 18:53:03 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 18:52 -------
Yeah, that looks much better to me.

I'd avoid running QStringList::split( ',', possibleExts ) over and over, that's a list you know will not change. I'd also avoid going through the projectFiles at all until you know that the naive check-this-directory has in fact failed to produce a hit.

Assume that the list of project files *could* be 5000+ files. You don't want to hang the UI for several seconds if you manage to hit "switch" when in a file that has no corresponding header/source file, forcing you to traverse the entire project file list.




More information about the KDevelop-devel mailing list