David Rosca
0ca133bfaf
Always use QPointF for positions on webpage
...
Also take zoom into account when setting scroll position
2016-12-27 11:58:29 +01:00
David Rosca
9beee941f6
Adjust position of status bar message widget according to scrollbars
2016-12-26 20:17:53 +01:00
David Rosca
1a110c3641
WebHitTestResult: Use data from QWebEngineContextMenuData
...
Fixes handling context menus in iframes.
Closes #2126
2016-12-26 17:26:39 +01:00
David Rosca
64b48f6899
Use native scrollbars for main scrollbars
...
Use native widgets to render main scrollbars (scrollbars of the
main webview widget, not iframes etc).
It makes the scrollbars on body element invisible and instead draws
native widgets on the space for scrollbars.
Comes with possibility to disable it, enabled by default.
2016-12-26 12:39:36 +01:00
David Rosca
c9797f5600
WebView: Make sure to return non-null inputWidget()
2016-12-24 16:57:10 +01:00
David Rosca
2ad5e82ce2
WebView: Fix finding rwhvqt with Qt 5.8
2016-12-24 16:46:03 +01:00
David Rosca
96202a6fe0
WebView: Remove custom drag&drop handling
...
QtWebEngine drag&drop now works
2016-12-24 12:24:12 +01:00
David Rosca
3a9e0501df
Fix saving new icons in database
...
Regression from 38bf9d2b4a
2016-12-20 12:33:43 +01:00
David Rosca
d932fcb004
WebView: Implement adding spellcheck suggestions to context menu
2016-10-25 20:22:20 +02:00
David Rosca
7c4345775c
WebView: Add Ctrl+M shortcut to toggle mute
2016-10-25 19:18:14 +02:00
David Rosca
b9a7c773f1
WebView: Fix handling of key events
...
Unhandled key events are sent to parent of QWebEngineView.
Hack with event filter on RenderWidgetHostViewQtDelegateWidget no longer
works for key events, so we need to install event filter on view
parent and handle key events there.
Downside is, that we can now only handle events that are not handled by
page itself.
2016-10-25 19:16:10 +02:00
David Rosca
1eec6ac87a
Use ViewSource page action with Qt 5.8
2016-10-24 21:24:33 +02:00
David Rosca
38bf9d2b4a
Use QWebEngineView::icon() instead of custom icon downloading
2016-10-24 21:19:27 +02:00
David Rosca
cf3fa88942
Require Qt 5.7
2016-10-24 20:11:50 +02:00
David Rosca
ce9d3983a0
Bring back Save Page action
...
Only with Qt >= 5.7
Closes #2083
2016-09-18 12:09:38 +02:00
Vlad
81aab60023
Add copy image option in context menu ( #2058 )
2016-08-16 12:57:11 +02:00
David Rosca
c004d52db1
Run js code in ApplicationWorld with QtWebEngine 5.7
2016-05-10 10:47:35 +02:00
David Rosca
838ec366de
Fix parenting WebPage when created from WebPage::createWindow
...
Closes #1949
2016-04-17 09:08:03 +02:00
David Rosca
90e72aa88f
Small cleanup in WebView
2016-04-06 17:24:15 +02:00
David Rosca
d8682ff51d
WebHitTestResult: Map position to page viewport coords
...
Closes #1927
2016-04-06 17:22:44 +02:00
David Rosca
71b6d922be
WebView: Handle create WebBrowserWindow
...
Instead of custom handling of shift + mouse click, use
QWebEngineView::createWindow. It should fix the issue with
JavaScript catching the mouse click performing some action
and QupZilla trying to open new window.
Closes #1898
2016-03-30 09:10:57 +02:00
David Rosca
3d5f45bfc5
Don't use custom script for toggle play/pause and mute
2016-02-28 18:25:30 +01:00
Kevin Kofler
a570beb667
Do not call loadRequest on an invalid URL
...
I expected that error to be handled gracefully. It's actually not, it
crashes the whole browser, and saves a state that will make it crash
again on startup. So just ignore invalid URLs if searchFromAddressBar is
set to false.
2016-01-14 05:03:13 +01:00
Kevin Kofler
fcae1fd3f5
Make automatic searching from the address bar optional
...
Some users (like me) really don't like it when their typos get sent to a
search engine without asking.
2016-01-14 03:29:47 +01:00
David Rosca
caefbcfa02
Another fix for older GCC
...
Closes #1790
2015-12-08 11:55:00 +01:00
David Rosca
626bf8f4bb
Fix searching for strings with special whitespaces from locationbar
...
This fixes eg. search terms with double byte space.
Closes #1622
2015-11-06 23:54:46 +01:00
David Rosca
27f0f9afac
WebView: Don't try to load invalid one-word urls
...
And also save the host lookup in case of invalid url.
2015-11-06 23:46:22 +01:00
David Rosca
638c22486c
WebView: Use correct check if the host lookup succeeds
2015-11-06 13:17:07 +01:00
David Rosca
bcf50f9343
WebView: Better HANDLE_EVENT macro
2015-11-06 12:47:27 +01:00
David Rosca
a6a6b33b09
WebView: Another take on forwarding events
...
Closes #1747
2015-11-06 00:06:03 +01:00
David Rosca
58d895e272
WebView: Always update site icon, even when icon is null
2015-10-23 12:26:27 +02:00
David Rosca
e052bda768
Remove remaining hunspell code
2015-10-23 12:26:27 +02:00
David Rosca
8d312ad132
WebView: Accept drops with urls and open them
...
First dropped url is opened with current webview, the others are
opened in new tabs
2015-10-23 12:26:27 +02:00
David Rosca
387aee12c2
SiteInfo: Only show on non-internal pages
2015-10-14 12:50:30 +02:00
David Rosca
36031c46e6
WebView: Store input widget as QWidget and not QObject
2015-10-14 12:12:25 +02:00
David Rosca
1a068e8c7d
Use QWebEnginePage::RequestClose action to close tabs
...
It is no longer to use hacky onbeforeunload javascript handling when
closing tabs.
2015-10-12 12:07:01 +02:00
David Rosca
56e5237697
WebView: Don't save blank page / speed dial into view history
2015-10-09 21:33:07 +02:00
David Rosca
54f31237a5
Fix build
2015-10-08 11:49:22 +02:00
David Rosca
db058ff194
Remove use of QNetworkRequest in LoadRequest
2015-10-06 09:46:23 +02:00
David Rosca
3d8b09653f
WebView: Clear icon when icon url changes
2015-10-05 22:08:31 +02:00
David Rosca
949faa5856
Add support for HTML FullScreen
...
Esc is used to leave fullscreen
2015-10-05 18:08:14 +02:00
David Rosca
9cb66878ff
Port to Qt 5.6
2015-10-05 17:20:53 +02:00
David Rosca
102ee62d3d
WebView: Enable download link/image/media actions with Qt 5.6
2015-10-04 19:35:02 +02:00
David Rosca
7a512918f8
WebView: Prevent handling input events twice
...
This fixes site info being opened twice when pressing Ctrl+I while
having focus in webview.
This makes the input events handling code very fragile, so let's hope
this won't break anything .. and QtWebEngine won't change the behavior
in following releases.
2015-10-04 19:04:25 +02:00
David Rosca
6ac34f74c1
WebView: Fix loading favicons that are on different hosts than site
2015-10-02 17:05:42 +02:00
David Rosca
7f101700ca
WebView: Check for m_clickedUrl.isEmpty() in mouseReleaseEvent
2015-10-02 15:50:29 +02:00
David Rosca
4d5808d915
Bring back AutoScroll plugin
...
This time implemented in C++ and not with userscript. There
is also no support for scrolling inside frames.
2015-10-02 15:36:07 +02:00
David Rosca
75fe50ca48
Bring back MouseGestures plugin
2015-10-02 11:14:10 +02:00
David Rosca
800cc14dcd
Bring back support for searching one-word terms from locationbar
2015-10-01 19:25:55 +02:00
David Rosca
5f6cfdc62a
Remove WebView::guessUrlFromString and use QUrl::fromUserInput instead
...
This also fixes setting homepage and new tab urls in preferences.
Closes #1710
2015-10-01 18:37:45 +02:00