Model for inline domain completion is updated asynchronously, so it is
needed to force the update of completer.
This was last regression of completer after switch to threaded searching
in history/bookmarks.
Instead of code duplication in LocationBar and WebSearchBar, create
the context menu from LineEdit.
Also actually create the menu, not just re-use the standardContextMenu.
The code to change color of host of url is completely new.
It doesn't use any paint hacks anymore. That means text in
locationbar will now be always rendered pixel perfect, as it would
with normal QLineEdit.
Cleanup in LocationCompleter. It is now using QCompleter in inline
mode to complete domain. It is still not ideal, eg. it refreshes
and show the domain completion with delay (job run in separate thread),
and sometimes it misses it completely.
WebSearchBar: Always complete when receiving suggestions. Fix issue
when suggestions were only showed after typing at least 2 characters.
Currently, there is one issue with inline domain completion. It is
also searched from the separate thread, and thus it gets displayed
after a small delay.
Closes#1135
Ctrl activation: Opens url in new tab
Shift activation: Opens url in new window
Closes#1245
Bookmarks: Update visit count also from location completer
BookmarkItem: Added new method updateVisitCount
Cursor will be properly drawn by Qt when starting writing
into empty lineedit (eg. select all and start typing).
After the completion popup is hidden for the first time, Qt will stop
drawing cursor and will only paint it again after losing and gaining
focus.
- it sorts by visit counts of bookmark's url from history
- count column in bookmarks is not needed after all :-)
Patch by Franz Fellner <alpine.art.de@gmail.com>
- fixed occasional flickering when typing in address bar
- support for opening completions with pressing Down key
- support for selecting completions with Tab key
closes#105