David Rosca
ebaab19f88
TabWidget: Correctly emit tabRemoved when detaching tab
2018-01-31 21:05:56 +01:00
David Rosca
43e472e50e
TabBar: Disallow detaching tab when there is only one tab in the only window
...
Otherwise it would close the last window which would quit the app.
2018-01-31 21:05:48 +01:00
David Rosca
85def54d3c
WebTab: Preserve order of child tabs in session file
2018-01-31 21:05:30 +01:00
David Rosca
1b473ac580
Detach WebTab when removing tab
...
That way tab is removed from parent and children before
it is removed from tabbar.
2018-01-31 20:56:48 +01:00
David Rosca
61299c89b6
WebTab: Save parent tab index in session file
2018-01-31 20:55:35 +01:00
David Rosca
2377503517
Add TabModel
2018-01-31 20:54:50 +01:00
David Rosca
b5d872f64e
TabContextMenu: Add Load Tab action
2018-01-28 22:40:46 +01:00
David Rosca
ba75905134
TabContextMenu: Add Unload Tab action
...
Closes #2563
2018-01-24 15:15:03 +01:00
David Rosca
195d3f2b93
TabWidget: Reset zoom when resetting tab when closing last tab
...
Closes #2540
2018-01-11 19:56:19 +01:00
David Rosca
47ee7bfbca
TabWidget: Set outside-tabbar property to both add tab buttons
...
It is now possible to exclusively distinguish both buttons.
2018-01-11 19:43:38 +01:00
David Rosca
848a61440c
TabWidget: Hide closed tabs button when there are no closed tabs
2018-01-11 19:42:46 +01:00
David Rosca
65d1493f0a
Fix closing tabs - regression from last commits
...
Closes #2534
2018-01-11 19:25:48 +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
679268dbd1
ClosedTabsManager: Move check for saving restore tab from TabWidget
2018-01-11 19:22:43 +01:00
David Rosca
f2002892aa
Save previous crashed session that were not restored to session file
...
Closes #2331
2018-01-11 19:21:17 +01:00
David Rosca
c97d077f67
TabBar: Make updatePinnedTabCloseButton private
...
It is no longer needed to call it after changing tab pinned state.
2018-01-11 19:19:04 +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
16fcae4202
ClosedTabsManager: Rewrite to use WebTab::SavedTab
2018-01-02 14:59:06 +01:00
David Rosca
8817493c68
Tabs: Allow to detach tab from window with only one tab
...
Window will be closed after detaching this tab.
2018-01-01 17:01:41 +01:00
David Rosca
fb652ff6cd
Tabs: Make the code work better with zero tabs
2018-01-01 16:59:52 +01:00
David Rosca
21ca9adf6b
TabBar: Add support for drag&drop tabs to other windows
...
Also it is possible to detach tab by dragging it outside of tabbar.
BUG: 386672
2018-01-01 16:58:47 +01:00
David Rosca
f5ad4424aa
TabWidget: Add insertView method for WebTab
2018-01-01 16:58:02 +01:00
David Rosca
c679fdf397
TabBar: Add support for droping text/url inside tabbar to insert new tab
2018-01-01 16:57:03 +01:00
David Rosca
c7d58017d2
AddTabButton: Remove handling of drop events
...
It is handeld by the TabBar itself.
2018-01-01 16:56:39 +01:00
David Rosca
373df431a7
TabWidget: Switch to newly created tab when duplicating tab
2018-01-01 16:56:26 +01:00
Razi Alavizadeh
991fb32cc3
Fix restoring state of current tab after restoring last session.
...
- After 04b288b3
WebTab does not restore its state on showEvent
- QupZilla issue: https://github.com/QupZilla/qupzilla/issues/2467
2017-10-06 19:35:54 +03:30
Razi Alavizadeh
bad3a76a2e
TabManager: Don't repeat detaching tab code.
2017-10-03 17:02:30 +03:30
Razi Alavizadeh
04b288b395
Fix restoring non-loaded tabs when moving them.
2017-10-03 17:02:25 +03:30
Razi Alavizadeh
f041d87534
Move tab context-menu methods to TabContextMenu.
2017-10-03 17:02:24 +03:30
Luigi Toscano
3c67be06b9
Fix UI strings with plural forms
...
Otherwise those strings can not be extracted.
2017-09-26 01:37:46 +02:00
David Rosca
d00e769749
Initial rename to Falkon
2017-08-25 17:32:32 +02:00
David Rosca
3492999abe
Don't return empty QByteArray when there are no tabs in session
2017-04-07 12:38:54 +02:00
David Rosca
cb4012c5c9
Don't save qupzilla:restore tabs in sessions
2017-04-07 12:36:42 +02:00
David Rosca
29bccf9984
Use Qt Windows Extras instead of custom QtWin
2017-01-20 09:58:13 +01:00
David Rosca
dfa0533de0
TabsMenu: Indicate current tab with bold font + don't list pinned tabs
...
Also remove number of opened tabs
2016-12-29 15:05:38 +01:00
David Rosca
f2f9e1a6c3
Signal change when tab is (un)pinned and moved
2016-12-27 18:54:17 +01:00
David Rosca
e9b226d477
Drop support for pinned tabs without saving session
...
Pinned tabs are saved alongside normal tabs in a session file.
If user don't have session restore enabled, pinned tabs are saved
and restored from a special pinnedtabs.dat file which uses different
codepath.
It has also another problem that it only saves pinned tabs for last
browser window, which sometimes may be confusing and lead to losing
the pinned tabs.
2016-12-27 18:40:20 +01:00
David Rosca
e15bcc9215
Fix restoring zoom level of tabs
2016-12-27 18:40:13 +01:00
std46
e906f6ae20
Issue #2049 close tabs to right & close tabs to left ( #2062 )
...
* add close to right menu
Closes #2049
2016-08-28 16:24:09 +02:00
Vlad
8e12480dc9
Show navigation in new tab in fullscreen mode ( #2055 )
2016-08-15 13:54:54 +02:00
David Rosca
f46364bc55
Fix typo changeOcurred -> changeOccurred
2016-02-26 10:43:34 +01:00
Vladislav Tronko
3f3f9eb428
Fix tabwidget signals connect
2016-02-15 20:34:20 +02:00
David Rosca
f9359da446
Fix some warnings when starting with new profile
2016-01-24 16:37:31 +01:00
innermous
5801ff0725
WebTab: Save/Restore zoom level on restart
2015-12-17 22:21:31 +01:00
David Rosca
12661a7d61
TabWidget: Ensure current tab is visible after restoring session
2015-10-22 18:33:20 +02:00
David Rosca
ebaf53f4f4
WebView: Always use WebView::restoreHistory()
2015-10-15 20:51:26 +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
db058ff194
Remove use of QNetworkRequest in LoadRequest
2015-10-06 09:46:23 +02:00
David Rosca
5f6cfdc62a
Remove WebView::guessUrlFromString and use QUrl::fromUserInput instead
...
This also fixes setting homepage and new tab urls in preferences.
Closes #1710
2015-10-01 18:37:45 +02:00
David Rosca
bfad9eb0aa
WebView: Bring back support for unbeforeunload when closing tab
2015-09-30 13:01:14 +02:00