Editing descriptive phrase titles for resources is buggy
Currently, ResourcePhraseContent presents a resource's title as both its name and its type. This leads to problems when attempting to rename a resource since the initial text is not properly set.
Note this also needs to fix the project-panel's phrases (which show resources as children of the project and which suffer a similar issue, albeit with the resource role and name instead of type and name).
The proposed fix is
- To change ResourcePhraseContent to only show the resource name as the title.
- To turn on rendering of the subtitle (either overall or specifically for resource phrases) and make the subtitle present the information that was previously in the phrase title.
Note that because subtitles are currently rendered underneath the title – which makes it take up additional space – and there are various optimizations in QTreeView that require all rows to have the same height, it may also be best to change the qtDescriptivePhraseDelegate class to draw the subtitle to the right of the title (in a different, smaller font) rather than underneath the title.