David Rosca
7fce81feaa
Merge branch 'Falkon/3.0'
2018-05-03 13:42:10 +02:00
David Rosca
9375b474ba
BrowserWindow: Track webview that initiated html fullscreen
...
Fixes issue where it wouldn't be possible to leave fullscreen
with F11 shortcut after closing webview that was in html fullscreen.
BUG: 393797
FIXED-IN: 3.0.1
2018-05-03 13:41:55 +02:00
David Rosca
f80b0bcbb5
Merge branch 'Falkon/3.0'
2018-03-17 13:58:46 +01:00
David Rosca
dc131ddfee
NavigationBar: Fix syncing back/forward buttons state with web history
...
BUG: 391331
FIXED-IN: 3.0.1
2018-03-17 13:55:35 +01:00
Julian Wolff
d708fea839
Use selected text in searchToolBar
...
Summary:
With this patch, the currently selected text in a webpage is automatically inserted into the
searchToolBar when it is opened.
This matches the behaviour of the search tool bar in Kate.
Test Plan:
Open a webpage. Select a single line of text. Press Ctrl+F. The selected text is inserted into the
searchToolBar.
Reviewers: #falkon, drosca
Reviewed By: #falkon, drosca
Subscribers: drosca
Differential Revision: https://phabricator.kde.org/D11210
2018-03-10 15:05:37 +01:00
Anmol Gautam
5c97a3abb5
Fix losing menubar visibility settings after quit from fullscreen
...
BUG: 391415
Differential Revision: https://phabricator.kde.org/D11062
2018-03-09 22:50:59 +01:00
David Rosca
d87cffd5db
Bookmarks: Remove default bookmarks
...
Also don't show bookmarks toolbar by default as there
is nothing to show now.
2018-03-01 16:47:12 +01:00
David Rosca
18d009c325
BrowserWindow: Give focus to webview before loading url in loadAddress
...
BrowserWindow::loadAddress() always gets called from user interaction,
so it should always update text in location bar (it wouldn't be updated
if location bar is focused).
2018-03-01 16:27:16 +01:00
David Rosca
49f48bdd1a
BrowserWindow: Don't resend Ctrl+Tab key press events
...
If the event is not accepted by TabWidget, it will be sent
back to BrowserWindow and end up in infinite recursion.
2018-02-24 16:42:15 +01:00
David Rosca
c83f7e3c01
Remove any remaining Oxygen style workarounds
2018-02-16 12:04:46 +01:00
David Rosca
6c94d40187
BrowserWindow: Make Ctrl+PgUp/Down shortcuts use tab bar order
2018-02-06 17:39:47 +01:00
David Rosca
0f2728e49e
BrowserWindow: Always create tab models in initialization
2018-02-06 17:39:33 +01:00
David Rosca
6985a8567a
RestoreManager: Validate all elements in session file
...
Session file can be corrupted or have data from unsupported version
inside the file.
2018-02-04 17:20:10 +01:00
David Rosca
ae4d971d1a
BrowserWindow: Add aboutToClose signal
2018-02-04 17:18:35 +01:00
David Rosca
16c7af63b6
BrowserWindow: Add accessor for TabModel
2018-02-04 16:58:43 +01:00
David Rosca
069c10c1f1
BrowserWindow: Don't show window in test mode
2018-01-29 00:21:49 +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
David Rosca
3608b48f6e
BrowserWindow: Simplify fullscreen handling
2018-01-11 19:58:13 +01:00
David Rosca
3833447767
BrowserWindow: Fix restoring maximized state after leaving fullscreen
2018-01-11 19:57:17 +01:00
David Rosca
059889ecfe
BrowserWindow: Don't show "Empty Page" in window title
2018-01-11 19:55:44 +01:00
David Rosca
1f9599aac7
Add DownloadsButton to navigation toolbar
...
It is visible only when there are items in download manager and shows
number of active downloads in badge text.
2018-01-11 19:48:43 +01:00
David Rosca
e33174100e
NavigationBar: Bring back exit fullscreen button
...
This time it is configurable and hidden by default.
2018-01-11 19:46:44 +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
e41b0edf0a
Make qupzilla:restore working also with disabled JavaScript
...
Instead of temporarily enabling JavaScript, make the page functional
without it.
2018-01-11 19:40:31 +01:00
David Rosca
ff1171abf0
AdBlock: Make it as self-contained as possible
...
It could be easy now to turn it into real loadable plugin.
2018-01-11 19:36:32 +01:00
David Rosca
401e600821
AdBlock: Remove action from Tools menu
2018-01-11 19:34:52 +01:00
David Rosca
2d698edd21
BrowserWindow: Fix crash when restoring geometry of fullscreen window
2018-01-11 19:32:59 +01:00
David Rosca
0cbbd197ca
AdBlockIcon: Move from statusbar to navigationbar as tool button
2018-01-11 19:29:09 +01:00
David Rosca
6824ea17f2
NavigationBar: Add support for adding additional tool buttons
2018-01-11 19:28:32 +01:00
David Rosca
c0ac5ce0a2
BrowserWindow: Use QActionGroup for encoding menu
2018-01-11 19:26:06 +01:00
David Rosca
0b8a693bca
NavigationBar: Add Tools button
...
It now contains toolbars and sidebars menus and configure
action that doesn't work yet.
2018-01-11 19:25:54 +01:00
David Rosca
d380d54ef8
NavigationBar: Add support for loading layout from config
...
There is no ui to configure it for now.
2018-01-11 19:25:41 +01:00
David Rosca
2e7a77a6b4
NavigationBar: Remove exit fullscreen button
2018-01-11 19:24:58 +01:00
David Rosca
fa4fba5f49
BrowserWindow: Add tabCount() method
2018-01-11 19:23:43 +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
1aa4b41151
BrowserWindow: Save sidebar for each window
...
Allows to have different sidebar on each window.
2018-01-02 22:56:41 +01:00
David Rosca
1de32182c1
BrowserWindow: Don't restore first app window from postLaunch slot
...
Instead restore it immediately after creation from MainApplication
as all other window types.
2018-01-02 22:55:58 +01:00
David Rosca
6b08e17dcd
BrowserWindow: Save ui state separately for each window
2018-01-02 22:55:50 +01:00
David Rosca
423e06c7d6
BrowserWindow: Always save/restore window geometry
2018-01-02 22:55:19 +01:00
David Rosca
ed39aefdad
Change structure of session file + also save window geometry
...
Bump session file version to 4.
Added support for old version to RestoreManager to prevent losing
old saved sessions.
2018-01-02 22:55:09 +01:00
David Rosca
ef06ed567a
Add ClosedWindowsManager allowing to restore closed windows
...
Closes #2306
2018-01-02 15:03:11 +01:00
David Rosca
b3bd08c5e4
BrowserWindow: Add SavedWindow struct and use it for saving/restoring
2018-01-02 15:01:16 +01:00
David Rosca
f5ad4424aa
TabWidget: Add insertView method for WebTab
2018-01-01 16:58:02 +01:00
David Rosca
3aa629ceac
BrowserWindow: Make sure window is shown before restoring session
...
Same reasoning as 639ecf3626dc5fa667acb17fa35bc398bdaf4712
2017-12-30 18:06:14 +01:00
David Rosca
397e2f714e
Set default button for all CheckBoxDialogs
...
Default button is now focused instead of checkbox.
2017-12-30 18:05:47 +01:00
David Rosca
53f6ef91ac
Temporarily enable JavaScript when loading qupzilla:restore page
2017-12-30 18:04:43 +01:00
David Rosca
736e3121bc
BrowserWindow: Show window before creating web views
...
Otherwise QWebEngineView first creates its underlying view with very
small size which then gets resized to correct size on first show event.
Also remove all calls to setUpdatesEnabled on window during session restore,
it doesn't seem to have any effect anymore.
2017-12-30 18:04:11 +01:00
David Rosca
c1c168aae9
Create every QSqlQuery with correct database for current thread
...
Queries are now always executed on correct database instance.
Databases are also stored in thread local storage instead of in hash
table with mutex.
Closes #2498
2017-12-18 13:06:42 +01:00
David Rosca
fba7b3d9fc
Fix saving window state when closing app with Ctrl+Q shortcut
...
Closes #2444
2017-12-05 13:51:29 +01:00