This is first quick port to QtWebEngine, most of advanced features
are not working yet. Please read README.
For now, it will use separate profile directory as well as browser
session, that means you can use both QtWebEngine and QtWebKit versions
at the same time.
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.
It is now possible to load bookmarks only with entering its keyword in
LocationBar and then pressing Enter (no need to select the bookmark
from popup completion).
refreshTextFormat() is using page's url to determine which part of
displayed text is host. Url of page may not change immediately when
starting loading.
This commit makes sure that text format is correct with every
WebView::urlChanged() signal.
Linux style brackets are now used also for source files.
One line blocks can now be without brackets.
Example:
if (test)
foo();
Multi-line if statements are now written with conditionals (||, &&, ...)
at the end of line. The last line of if body does not ends with closing
bracket, instead the closing bracket is written on separate line.
One line blocks in multi-line if statements should not be without brackets.
Example:
if (test ||
test2 &&
test3
) {
foo();
}
[ci skip]
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.
Also disable animations for Oxygen style, it breaks when changing
text to completely different one (eg. loading foo.com and then bar.com)
and the url is too long to fit in line
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.