[Folder View] implement "two click rename" feature for double-click mode
This commit adds to Folder View a feature that Dolphin has: the ability to rename a selected item by clicking on its title. This feature is turned on only when using Double Click mode, as in Dolphin.
The way it's implemented is by conditionally loading a mouse area behind a delegate's label when it's selected and using double-click mode. Then, in FolderView.qml, a click on a selected item that happens to be inside the mouse area initiates renaming.
In terms of code quality, I have two questions
- Is the state tracking for the previously selected item okay? Is there a nicer way to do that?
- Is the way I've implemented the
hoveringOverTitleproperty totally gross and could it be done better in another way?
BUG: 392731 FIXED-IN: 5.20