David Rosca
8a942e2e73
WebView: Remove QWebChannel resetting workaround
...
It was fixed while ago in Qt
2017-02-06 20:45:28 +01:00
David Rosca
8fa9db9f65
Show print preview dialog when printing page
...
Print directly to QPrinter instead of using intermediate pdf file.
2017-02-06 20:40:40 +01:00
David Rosca
13cba7a069
Bump minimum Qt to 5.8
2017-02-06 18:39:59 +01:00
David Rosca
45f37a3a64
WebView: Fix send text by mail action
2017-01-22 10:05:21 +01:00
David Rosca
5cc7dd080e
Fix scrolling with high resolution mouse/touchpads
...
Use helper class to accumulate "common steps" of 120 angle delta.
2017-01-21 12:23:53 +01:00
David Rosca
a6988ee8f1
TabIcon: Draw small dot in corner when there is activity in pinned tab
2017-01-20 15:09:57 +01:00
David Rosca
614ac46174
WebView: Hide reload/stop actions when not available
2017-01-03 16:21:16 +01:00
David Rosca
68e0425bde
Hide tab icon when page icon is null
...
Completely hide the tab icon instead of showing generic webpage icon
when page icon is null.
2016-12-30 17:16:30 +01:00
David Rosca
e21636c661
Add more HighDPI ready icons in data/icons/menu
2016-12-29 15:07:34 +01:00
David Rosca
a4d284fa71
WebView: Support QApplication::wheelScrollLines
2016-12-27 21:53:43 +01:00
David Rosca
6514aed3a7
Fix skipping internal pages when showing source code with Qt 5.8
2016-12-27 19:05:01 +01:00
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