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
cb771352da
WebInspector: Initialize m_inspectElement
...
Fixes crash after opening inspector
Closes #2132
2016-12-27 20:17:44 +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
95603f652d
Fix some warnings in js scripts
2016-12-27 16:51:19 +01:00
David Rosca
0a0eb2a038
WebScrollBar: HighDPI fixes
2016-12-27 13:41:30 +01:00
David Rosca
f651b42e23
WebScrollBar: Fix scrollbar values when page is zoomed
2016-12-27 13:12:10 +01:00
David Rosca
08af25f4f7
WebScrollBar: Don't update value while slider is down
...
Makes the scrolling smoother
2016-12-27 12:20:16 +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
4d51b4c00c
Use WebPage::SaveJsWorld for executing scripts
...
QWebChannel must still be registered on MainWorld
2016-12-26 16:45:47 +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
c0907885b9
Implement QWebEnginePage::createWindow(WebBrowserBackgroundTab)
2016-10-24 21:31:24 +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
e1c97e1a6d
Use runtime Qt version instead of define where appropriate
2016-10-24 21:10:15 +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
David Rosca
3da4150fcb
Merge branch 'v2.0'
2016-08-23 19:48:45 +02:00
David Rosca
8206dea201
Workaround crash on drop with Qt 5.7.0
...
Closes #2060
2016-08-23 19:48:22 +02:00
Vlad
81aab60023
Add copy image option in context menu ( #2058 )
2016-08-16 12:57:11 +02:00
David Rosca
f0e2b938ba
Don't use QWebEngineScript::ApplicationWorld with Qt 5.7
...
It doesn't work because js on qupzilla: pages runs in MainWorld.
Closes #2015
2016-06-27 12:58:26 +02:00
David Rosca
1273c13be8
Merge branch 'v2.0'
2016-06-21 21:47:04 +02:00
David Rosca
d168efae9e
WebHitTestResult: Use baseURI for resolving link url
...
Fixes resolving link urls when there is set base href.
Closes #2010
2016-06-21 21:45:24 +02:00
David Rosca
d1f266cc49
AdBlock: Apply all css rules in WebPage::cleanBlockedObjects
2016-05-27 15:58:21 +02:00
David Rosca
509c913cbe
AdBlock: Apply all css rules in WebPage::cleanBlockedObjects
2016-05-27 15:55:30 +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
236eea97f0
WebPage: Check view() for nullptr in windowCloseRequested
...
Closes #1944
2016-04-14 17:22:33 +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
dfa04388c7
Fix build on Windows
2016-03-30 11:50:46 +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
6eb0693e7d
Remove FollowRedirectReply
...
QNetworkAccessManager now supports redirects, so there is
no need for it anymore.
2016-03-20 19:59:52 +01:00
David Rosca
3d5f45bfc5
Don't use custom script for toggle play/pause and mute
2016-02-28 18:25:30 +01:00
David Rosca
4a1b67ec2b
WebInspector: Disable web inspector by default
...
It is now needed to manually set the QTWEBENGINE_REMOTE_DEBUGGING
environment variable.
2016-02-20 15:25:18 +01:00
David Rosca
e487e4c1f6
Add option to open popup windows in tabs
...
Closes #1796
2016-02-14 10:37:28 +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
9ed3554835
Fix build with latest Qt 5.6
2015-12-08 11:27:06 +01:00
David Rosca
73d93e1e3c
Don't assert when Shift+LeftClick on a link in frame
2015-12-07 12:41:07 +01:00