This sounds interesting, so I made a patch that will do what you want. It adds the menu option "Project -> Project Tree -> Show Filenames only". Seems to work, but I haven't tested extensively.
The patch was taken from latest svn of the debugger branch (hopefully, would also work on trunk)