This is a WIP aiming to make KDevelop use the user-specified project name consistently and throughout.
Currently, that name is used only in a few places, the projects toolview and in the titlebar. In all other places where projects are listed by *a* name, the project file name is used which isn't always enough. QMake-based projects in particular will often show up with an ambiguous name like "src" (qtbase, qttools, qtwhatever components imported as projects; their toplevel .pro files don't support that).
Ideally, the user-selected project name should also be used
- to name the .kdev4 project files
- in the output of kdevelop -l and kdevelop --ps
This will remove any ambiguity that could arise from seeing projects listed by their directory name. It will also make it possible to have multiple projects defined for a single source tree (e.g. for separate components in different subfolders, for building mutually-exclusive Qt4, Qt5 or GTk variants, etc.)
It is currently already possible to achieve this goal by renaming and editing the generated .kdev4 files (after closing/unloading the corresponding project).
BUG: 384955