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

662 Commits

Author SHA1 Message Date
David Rosca
f1c7c2beaf
Remove NetworkProxyFactory 2018-02-11 10:24:55 +01:00
David Rosca
881615a629
Remove AccessKeysNavigation plugin 2018-02-11 10:09:39 +01:00
David Rosca
7670c7df90
VerticalTabs: Scroll to current tab when opening new selected tab 2018-02-09 18:12:13 +01:00
David Rosca
75b072ec88
Fix missing override warnings 2018-02-07 11:55:46 +01:00
David Rosca
4caab39269
Fix building password backend plugins 2018-02-06 17:53:21 +01:00
David Rosca
977b45505c
PluginProxy: Remove QZ_REGISTER_* macros 2018-02-06 17:40:14 +01:00
David Rosca
43fa19121a
VerticalTabs: Make it possible to change height of pinned tab view
Same as TabTreeView, TabListView uses font metrics to calculate height.
Themes can change it with "font-size" property.
2018-02-06 17:39:52 +01:00
David Rosca
6aee383a9c
VerticalTabs: Add Tab Tree context menu with tree actions
With Close Tree + Expand/Collapse all actions.
2018-02-05 16:49:38 +01:00
David Rosca
5e2af2ff66
VerticalTabs: Add support for creating groups
Long press on New Tab button will show menu with existing groups
and clicking on group will open new tab inside this group.
2018-02-05 16:49:24 +01:00
David Rosca
ea432a7de7
TabContextMenu: Add Options flags 2018-02-05 16:44:44 +01:00
David Rosca
825ee7ea96
Revert "TabContextMenu: Require only WebTab in constructor"
This broke context menu on empty tab bar space.

This reverts commit e791e77045b572af02d27f7a15ae082a4a13814c.
2018-02-05 16:44:39 +01:00
David Rosca
408b2ffad6
TabWidget: Add public webTab method
Also cleanup tabbedwebview.h includes.
2018-02-05 16:44:23 +01:00
David Rosca
aa332a4ed2
VerticalTabs: Reject drop on last row in pinned tabs model
It seems like a weird behavior in Qt because source model receives
drop on last index (in filter model) as drop on last index in source
model instead of filter model and it can't make a right decision.

Source model:
| 1 | 2 | 3 | 4 | 5 | 6 |
Filter model:
| 1 | 2 | 3 | 4 |
                ^
Dropping here propagates to source model as drop on index 7, not 5.

Let's just ignore this case to workaround it.
2018-02-04 17:23:46 +01:00
David Rosca
dbd4e75941
VerticalTabs: Save expanded state in session 2018-02-04 17:22:00 +01:00
David Rosca
62264501e2
VerticalTabs: Switch tabs with mouse wheel
But only when there is no scrollbar in normal tabs view.
2018-02-04 17:21:54 +01:00
David Rosca
bbbe136346
VerticalTabs: Handle Ctrl+Tab switching tabs in tree order 2018-02-04 17:21:50 +01:00
David Rosca
25d70e557a
VerticalTabs: Add Simple theme 2018-02-04 17:21:38 +01:00
David Rosca
7bb2b5dfed
VerticalTabs: Cleanups in Windows theme 2018-02-04 17:21:34 +01:00
David Rosca
ca60f9a300
VerticalTabs: Don't use selected icon mode for favicons
On some styles (particularly QStyleSheetStyle) it returns pixmap
drawn onto background color.
2018-02-04 17:21:26 +01:00
David Rosca
4db34d4645
VerticalTabs: Remove custom properties for colors 2018-02-04 17:21:23 +01:00
David Rosca
06621a6f8a
VerticalTabs: Add windows theme 2018-02-04 17:21:15 +01:00
David Rosca
2c731111d7
VerticalTabs: Add support for changing themes 2018-02-04 17:21:12 +01:00
David Rosca
2c60d8bcfb
VerticalTabs: Add option to append/prepend new child tabs 2018-02-04 17:21:08 +01:00
David Rosca
e981f638de
VerticalTabs: Hide pinned tabs view when empty 2018-02-04 17:21:04 +01:00
David Rosca
f3d5f27cdf
VerticalTabs: Set Qt::NoFocus policy
Fixes some styles painting unwanted focus indicator.
2018-02-04 17:21:01 +01:00
David Rosca
8c96660852
VerticalTabs: Add new tab button 2018-02-04 17:20:56 +01:00
David Rosca
faec2d2b20
VerticalTabs: Fix object names for close button 2018-02-04 17:20:52 +01:00
David Rosca
ac9830381d
VerticalTabs: Add option to indentate background of items 2018-02-04 17:20:49 +01:00
David Rosca
e5a55a6c69
VerticalTabs: Fix rendering negative margins when updating single index 2018-02-04 17:20:44 +01:00
David Rosca
79d116d07c
TabTreeDelegate: Make it stylable on which items to show close button 2018-02-04 17:20:40 +01:00
David Rosca
36eb1f5523
VerticalTabs: Fix QSS styling issues
It is now possible to replicate tabbar from Windows theme.
2018-02-04 17:20:28 +01:00
David Rosca
ad387fe712
TabTreeView: Draw real tabbar close button and make it stylable 2018-02-04 17:20:17 +01:00
David Rosca
4ad6d6cda1
TabTreeModel: Only sync top-level tabs when closing window
Otherwise reordering tabs is too distracting when tabbar is visible.
2018-02-04 17:18:39 +01:00
David Rosca
05bb94adfe
VerticalTabs: Correctly delete models when switching view type 2018-02-04 17:18:31 +01:00
David Rosca
68c30781bb
VerticalTabs: Show tooltips for tabs 2018-02-04 17:18:27 +01:00
David Rosca
a1101c129c
VerticalTabs: Move scrollbar to the left 2018-02-04 17:18:19 +01:00
David Rosca
805c23ddb9
VerticalTabs: Expand subtree when new tab is inserted 2018-02-04 17:18:13 +01:00
David Rosca
072d3c28ee
VerticalTabs: Show pinned tabs in horizontal list above normal tabs 2018-02-04 17:18:01 +01:00
David Rosca
801c1845b5
Cleanups in TabTreeView 2018-02-04 17:16:19 +01:00
David Rosca
fc9f88ae67
VerticalTabs: Set scrolling per pixel 2018-02-04 17:15:57 +01:00
David Rosca
ebd2b6da51
VerticalTabs: Automatically scroll to current tab 2018-02-04 17:15:50 +01:00
David Rosca
66023d2dba
Add VerticalTabs plugin 2018-02-04 17:15:23 +01:00
David Rosca
0c7245fa9f
TabContextMenu: Require only WebTab in constructor 2018-02-04 16:58:08 +01:00
David Rosca
a89fcf9002
GM_Manager: Remove no longer needed doDownloadScript helper
downloadScript is now always called from main thread again.
2018-01-31 20:45:07 +01:00
David Rosca
f9feab7d9d
GM_Script: Download icon and display it in settings 2018-01-31 20:44:33 +01:00
David Rosca
4283260504
GM_Script: Fix support for @noframes 2018-01-31 20:44:09 +01:00
David Rosca
b5b77e7932
GM_Script: Add iconUrl property 2018-01-31 20:43:57 +01:00
David Rosca
1fe7f0c232
Correctly handle possibility that page changes in WebView 2018-01-28 22:41:08 +01:00
Jimi Huotari
addbb21c77
Fix build against Qt 5.11 2018-01-26 12:59:03 +01:00
David Rosca
32e7ec1826 TabManager: Port icon to AbstractButtonInterface
It is now available from both NavigationBar and StatusBar
2018-01-24 20:37:21 +01:00
David Rosca
cc55c0ad02 FlashCookieManager: Port icon to AbstractButtonInterface
It is now available from both NavigationBar and StatusBar
2018-01-24 20:37:15 +01:00
David Rosca
7265c30aa8 Add Downloads, AdBlock and GreaseMonkey buttons to statusbar 2018-01-24 20:37:10 +01:00
David Rosca
444884bee9 Rename StatusBarMessage -> StatusBar 2018-01-24 20:36:34 +01:00
Razi Alavizadeh
77cb017e1d TabManager: Remove redundant condition 2018-01-24 20:34:40 +01:00
David Rosca
41775c3a20 Replace some QupZilla leftovers with Falkon 2018-01-24 17:15:26 +01:00
David Rosca
f315b0e3dc Remove old translations 2018-01-24 17:10:36 +01:00
4292ecd465 TabManager: Add Unload checked tabs action (#2566) 2018-01-24 15:15:09 +01:00
David Rosca
4e39cad310 SBI_JavaScriptIcon: Fix temporarily enabling/disabling JavaScript
Closes #2560
2018-01-24 15:14:50 +01:00
David Rosca
6f20d5e511 Move build config options to config.h
Also remove NO_SYSTEM_DATAPATH and DISABLE_UPDATES_CHECK
2018-01-24 14:26:13 +01:00
David Rosca
087c98343e Remove compatibility code with Qt older than 5.9 2018-01-14 09:30:15 +01:00
David Rosca
a8dcf176cf Fix merge issues 2018-01-11 20:51:34 +01:00
David Rosca
4bf85ee3cb WebPage: Register QWebChannel on isolated ApplicationWorld
This way scripts on pages don't have access to it.
Exception is qupzilla: scheme as internal pages requires the bridge.

GreaseMonkey userscripts now runs on ApplicationWorld too. This fixes
userscript that depend on script world being isolated from main page world.
Tested with 4ChanX + OneeChan.
2018-01-11 19:55:01 +01:00
David Rosca
287631d37b WebPage: Remove setJavaScriptEnabled method 2018-01-11 19:50:13 +01:00
David Rosca
6806fa5405 AbstractButtonInterface: Use WebView property instead of WebPage
WebView of a tab will not change while WebPage may.

This also fixes crash when WebPage of WebView is changed. It can happen
eg. when opening new tab from page with target=_blank.

Closes #2537
2018-01-11 19:42:38 +01:00
David Rosca
23279f6e10 GreaseMonkey: Move icon from statusbar to navigationbar as tool button 2018-01-11 19:29:35 +01:00
David Rosca
fa4fba5f49 BrowserWindow: Add tabCount() method 2018-01-11 19:23:43 +01:00
David Rosca
5cc41d219e Always open new window when restoring session after crash
Also remove special handling for qupzilla:restore tabs.
2018-01-11 19:23:36 +01:00
David Rosca
ebed38e1c4 GreaseMonkey: Don't export wrappedJSObject
It seems to confuse some userscripts thinking that this is Firefox.

This, along with recent values changes should fix compatibility issues
with large portion of userscripts.
Tested with 4chanX as one of the very complex userscript.
2018-01-11 19:18:57 +01:00
David Rosca
30bad61eea GreaseMonkey: Rewrite values bridge to pass values as QString
Passing QVariant/QJsonValue is broken in QWebChannel (QtWebEngine?)
2018-01-11 19:18:31 +01:00
David Rosca
b8f9c7e15d KWalletPasswords: Pass window id to Wallet::openWallet
Closes #2441
2018-01-11 19:15:30 +01:00
David Rosca
8a6547b39c Use window._qupzilla_external property to check if web channel is connected
Instead of checking for window.external as that is now defined with
at least QtWebEngine 5.10.
2018-01-11 19:15:02 +01:00
David Rosca
7ce93354c8 GreaseMonkey: Add support for GreaseMonkey 4.0 API
Properly implement values functions in 4.0 API version.

Closes #2355
2018-01-11 19:12:53 +01:00
David Rosca
ee62ad0215 Use correct web settings in private browsing mode
Closes #2427
2018-01-02 22:59:17 +01:00
David Rosca
f5ad4424aa TabWidget: Add insertView method for WebTab 2018-01-01 16:58:02 +01:00
David Rosca
d739692523 AutoScroll: Don't force detected scroll direction
As the detection of available scroll direction is not perfect,
don't enforce it.

Closes #2503
2017-12-03 19:11:09 +01:00
David Rosca
9c3f38fa11 Fix installing and loading plugins 2017-10-27 14:14:40 +02:00
Razi Alavizadeh
4c827bee74 TabManager: Bump version to 0.8 2017-10-03 17:02:31 +03:30
Razi Alavizadeh
48c409fa76 TabManager: Support moving tabs between windows by drag & drop. 2017-10-03 17:02:30 +03:30
Razi Alavizadeh
bad3a76a2e TabManager: Don't repeat detaching tab code. 2017-10-03 17:02:30 +03:30
Razi Alavizadeh
33846b9523 TabManager: Use italic font and "disabled" style for non-loaded saved tab item. 2017-10-03 17:02:29 +03:30
Razi Alavizadeh
b9a9c24060 TabManager: Cleanup and fix. 2017-10-03 17:02:28 +03:30
Razi Alavizadeh
9cb5f106ef TabManager: item based update. 2017-10-03 17:02:27 +03:30
Razi Alavizadeh
06094cfc1c TabManager: Scroll to the current tab item. 2017-10-03 17:02:27 +03:30
Razi Alavizadeh
f17eb82cf9 TabManager: Add tab context-menu to treewidget context-menu. 2017-10-03 17:02:26 +03:30
David Rosca
2732aadda6 Fix building GnomeKeyring and KWallet password backend plugins
Also remove KDE/GNOME integration options and instead always build the plugins
when necessary dependencies are found.
2017-09-26 15:19:55 +02:00
Jacob Tey
11d73bd26a Fix icon name in SBI images icon + add object name to AdBlockIcon 2017-09-25 19:35:44 +02:00
David Rosca
df25f49cfb Remove more unused files 2017-09-25 14:18:33 +02:00
David Rosca
3b09f115e7 Remove QMake build files 2017-09-25 13:08:06 +02:00
David Rosca
c77ec4005e Don't include plugins translations as resource
Fixes CMake build, but plugin translations are not working now.
2017-09-25 13:04:54 +02:00
David Faure
76457af130 CMake buildsystem for the autotest 2017-09-10 15:17:07 +02:00
David Faure
6e7a14a9c2 CMake buildsystem for plugins 2017-09-10 15:01:58 +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
d7ff9546d6 Fix build 2017-08-11 15:46:19 +02:00
David Rosca
def0c8e4f4 Update empty.ts 2017-08-11 15:35:46 +02:00
David Faure
2382f2c955 Fix compilation with KDE in custom prefix
The .pri file for KWallet brings in the correct include path for
that framework, while KF5/KWallet/KWallet only works with a /usr/include
base dir.
2017-07-26 20:12:52 +02:00
David Rosca
f82cab9f19 Pull translations from Transifex 2017-07-24 12:05:22 +02:00
David Rosca
0c4f20ff2d GreaseMonkey: Use better metadata parser
Use QTextStream instead of parsing with regexps
2017-05-01 11:05:08 +02:00
David Rosca
355fc7e4a7 GreaseMonkey: Bump plugin version 2017-04-19 15:54:23 +02:00
David Rosca
a2e02a8922 GreaseMonkey: Use QtWebEngine's handling of include/exclude/match rules 2017-04-19 15:53:27 +02:00