Normally, everybody likes good suggestions, and dislikes bad ones. For example, when Krusader users utilize the "Search for" comboBox in the search dialog: they often see bad suggestions because there are obsolete entries, mistakes and so on, but normal Krusader users can't remove those entries. For example, web browsers have Shift+Del in order to remove the thwarting entries.
With a new class that is introduced with this commit, Krusader users are able to delete wrong entries from history lists, and therefore they can remove remove those bad suggestions that they were seeing. In this commit the new class is used only in one place, but it's intended that (in next commits) the new class will be used in more places.
In other words:
- Usually, the history of comboBoxes (like the "Search for" one in the search dialog) end up getting plenty of cruft. With the present change the user is able to get rid of obsolete entries, mistakes, and so on. When the user goes to the "Search for" comboBox, starts typing and he sees that a proposed suggestion shouldn't exist, then the user is able to press Shift+Del and that useless suggestion gets deleted. The user can also use the arrow keys in order to see all the history in the "Search for" comboBox, and delete the entries that are needless.
I'm no QWidgets expert, improvements are welcome :-)