1
mirror of https://invent.kde.org/network/falkon.git synced 2024-09-23 02:32:10 +02:00
Commit Graph

191 Commits

Author SHA1 Message Date
David Rosca
a5e35bac75 WebInspector: Fix showing close button with Qt 5.10
It's not tested with Qt 5.9 but it should work there too.
2017-12-30 18:04:51 +01:00
David Rosca
7cd86e144b WebInspector: Don't show inspector actions when JavaScript is disabled
WebInspector doesn't work without JavaScript.
2017-12-30 18:03:58 +01:00
David Rosca
cca6b0189f Don't use QPrinter when printing to PDF
QWebEnginePage::printToPdf produces scalable PDF with clickable
links while QWebEnginePage::print will create PDF containing low quality
image of page.

Closes #2477
2017-11-01 17:37:45 +01:00
David Rosca
40d42f1230 LoadRequest: Replace isEmpty with isValid
Also test for QUrl being valid, not just not empty
2017-10-09 12:06:25 +02:00
David Rosca
efff69b7b2 Continue with Falkon renaming 2017-08-25 17:55:52 +02:00
David Rosca
d00e769749 Initial rename to Falkon 2017-08-25 17:32:32 +02:00
David Rosca
6f08f94e0f Workaround wrong focus when opening new tab from createWindow() 2017-07-19 13:57:37 +02:00
David Rosca
f0b8ac2daa Use QWebEngineHttpRequest with Qt 5.9 2017-06-06 17:40:47 +02:00
David Rosca
16f9b2fde9 Rework the zoom bug workaround
Qt 5.9 is affected too

Closes #2289
2017-05-29 17:11:48 +02:00
David Rosca
3ec6ffa5c9 WebPage: Remove no longer used m_adjustingScheduled 2017-05-29 17:05:28 +02:00
David Rosca
bd9a33d6f9 Fix crash when opening target __blank links
Regression from 92b49be0c2

Closes #2335
2017-05-19 09:02:38 +02:00
Anthony Fieroni
92b49be0c2 Don't leak web page
Signed-off-by: Anthony Fieroni <bvbfan@abv.bg>
2017-05-12 20:50:24 +02:00
Anthony Fieroni
db33b8d860 Workaround Qt5.8 zoom factor bug
Signed-off-by: Anthony Fieroni <bvbfan@abv.bg>
2017-05-12 20:50:24 +02:00
David Rosca
eb0cf5065d WebView: Exit fullscreen on hide
Closes #2294
2017-04-09 10:33:57 +02:00
David Rosca
8e16efc1bf Fix crash when restoring history of internal pages with QtWebEngine 5.8
Closes #2302
2017-04-08 16:44:41 +02:00
srazi
2654081912 Fix 2178 (#2292)
* CheckBoxDialog: Rewritten to inherit from QMessageBox

-  QMessageBox supports showing checkbox for Qt >= 5.2

* Add option to disable warning message when closing tabs from tabbar context menu.

- Closes #2178
2017-04-05 10:27:03 +02:00
David Rosca
44cd68e3d9 Merge branch 'v2.1' 2017-03-18 16:11:34 +01:00
David Rosca
b61b4aca67 WebView: Don't change m_progress when loading finished
QtWebEngine may emit loadProgress signal even after loadFinished
was already emitted.

Closes #2222
2017-03-18 16:00:57 +01:00
David Rosca
f20d421113 Merge branch 'v2.1' 2017-03-15 13:29:24 +01:00
David Rosca
486b8f4c7d Workaround QWebEnginePage not scrolling to anchors when opened in background tab
Closes #2242
2017-03-15 13:11:27 +01:00
David Rosca
bfef9e2c03 Merge branch 'v2.1' 2017-03-15 10:53:44 +01:00
David Rosca
9211a8eceb Disable native scrollbars by default
See #2246
2017-03-15 10:49:27 +01:00
José Rios
85832642db Fixed new tab not opening on mouse mid button click (#2244)
Whenever the user pressed the middle button the mouse press handler
in WebPage issued an 'execJavaScript' which has its own event loop
causing the mouse release handler to be called before the field
'm_clickedUrl' get the url in the first handler. Since this field
is used to guard the logic in the second handler the new tab wasn't
opening.

Closes #2238
2017-03-13 09:05:36 +01:00
José Rios
e49ea20f33 Fixed new tab not opening on mouse mid button click (#2244)
Whenever the user pressed the middle button the mouse press handler
in WebPage issued an 'execJavaScript' which has its own event loop
causing the mouse release handler to be called before the field
'm_clickedUrl' get the url in the first handler. Since this field
is used to guard the logic in the second handler the new tab wasn't
opening.

Closes #2238
2017-03-12 17:57:19 +01:00
David Rosca
e832a3418c Merge branch 'v2.1' 2017-02-21 10:29:15 +01:00
David Rosca
71f0737511 WebScrollBarManager: Use scrollbars as lambda context
Instead of manually disconnecting the lambdas, use scrollbar
as context.
2017-02-21 10:28:24 +01:00
David Rosca
071c4fbe52 Merge branch 'v2.1' 2017-02-13 21:35:56 +01:00
David Rosca
fe0ae53653 WebScrollBar: Make sure not to accidentally scroll
Closes #2211
2017-02-13 21:13:30 +01:00
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
5f0f520a45 WebPage: Remove now unused scheduleAdjustPage 2017-02-06 20:44:27 +01:00
David Rosca
6b39dc9cf0 WebPage: Remove no longer needed copies of runJavaScript functions 2017-02-06 20:43:40 +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
534eb14432 WebScrollBar: Add workaround for Breeze style 2017-01-31 22:06:48 +01:00
David Rosca
e10294db6d WebScrollBarCornerWidget: Draw using QStyle::PE_PanelScrollAreaCorner 2017-01-26 21:13:57 +01:00
David Rosca
e656e92eaf WebScrollBarManager: Fix height of vertical scrollbar when horizontal is visible
Also fix warnings in console when trying to access null document.documentElement
2017-01-26 20:57:12 +01:00
David Rosca
f9a0d202de WebScrollBarManager: Guard against ScrollBarData being deleted 2017-01-26 20:45:38 +01:00
David Rosca
c785e09bdf WebScrollBarManager: Improve viewportSize() with knowledge from javascript 2017-01-26 17:59:45 +01:00
David Rosca
7096d3eb88 WebScrollBarManager: Correctly update visibility with javascript
Closes #2182
2017-01-26 17:27:02 +01:00
David Rosca
1ed1059c42 WebHitTestResult: Only update with contextmenu data with same position 2017-01-23 08:21:24 +01:00
David Rosca
635cc8e5eb WebInspector: Remember separately docked/undocked sizes 2017-01-22 14:50:15 +01:00
David Rosca
4878265ff6 Fix crash when render process crashes
Tab crash page is now correctly loaded and offers user to reload the
page.
2017-01-22 10:23:14 +01:00
David Rosca
45f37a3a64 WebView: Fix send text by mail action 2017-01-22 10:05:21 +01:00
David Rosca
060011e466 Use qMax and qAbs instead of std functions
Closes #2169
2017-01-21 21:23:36 +01:00
David Rosca
224207b8d6 WebInspector: Remember height 2017-01-21 17:59:54 +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
8664dd8c7e Don't use border image in internal pages
Also cleanup unused pages
2016-12-31 15:08:47 +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