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

135 Commits

Author SHA1 Message Date
David Rosca
5013053811 TabBar: Reject drags from other app instances 2018-01-02 22:57:26 +01:00
David Rosca
7b6b69c35f TabBar: Fix dropping text/url to tabs 2018-01-02 15:03:27 +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
90153e280e Fix build 2018-01-01 17:10:44 +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
3eac8bd161 TabContextMenu: Remove detach tab action
Tabs can now be detached with drag&drop
2018-01-01 17:01:19 +01:00
David Rosca
38bfd49d4f TabBar: Change mimetype to falkon 2018-01-01 17:00:42 +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
fe396e64ff ComboTabBar: Add tabPixmap method to render single tab 2018-01-01 16:58:16 +01:00
David Rosca
08c0b480c1 ComboTabBar: Fix clearing drop marker when moving from main to pinned tabbar 2018-01-01 16:58:09 +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
246adbfb0b ComboTabBar: Add support for drawing drop indicator
It's just a solid line now, should be improved later.
2018-01-01 16:56:58 +01:00
David Rosca
4fb73f3840 ComboTabBar: Fix edge case in tabAt
Right corner of pinned tabbar would incorrectly return tabs from main tabbar.
Also make it work on close button.
2018-01-01 16:56:52 +01:00
David Rosca
8100020b41 TabBar: Support dropping text on tabs
It will be searched for using default search engine
2018-01-01 16:56:47 +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
ca04e9d967 TabBar: Support adding new tabs with text drop data
Urls are loaded directly and text is searched for using default search
engine.
2018-01-01 16:56:32 +01:00
David Rosca
373df431a7 TabWidget: Switch to newly created tab when duplicating tab 2018-01-01 16:56:26 +01:00
Razi Alavizadeh
8086e46ca4 ComboTabBar: Fix duplicate call to slotCurrentChanged() when closing tab.
- The issue occurred after 04b288b395
- See https://github.com/QupZilla/qupzilla/issues/2489
2017-10-22 20:00:06 +03:30
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
f17eb82cf9 TabManager: Add tab context-menu to treewidget context-menu. 2017-10-03 17:02:26 +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
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
67c6834a5f ComboTabBar: Disable focusing scroll buttons 2017-08-12 15:56:26 +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
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
e150e44cc6 Replace Q_OS_MAC with Q_OS_MACOS 2017-02-10 19:00:58 +01:00
David Rosca
5873ed48fd TabIcon: Hide icon immediately when url is empty or has qupzilla: scheme 2017-02-07 10:41:37 +01:00
David Rosca
bcb633fcd0 TabBar: Use correct duration for showing add tab button after releasing dragged tab 2017-01-28 10:31:45 +01:00
David Rosca
8ba412e584 ComboTabBar: Add setFocusPolicy
TabBar is setting Qt::NoFocus policy which was ignored
2017-01-27 16:51:45 +01:00
David Rosca
74740ef441 ComboTabBar: Make wheel scrolling faster 2017-01-27 15:43:21 +01:00
David Rosca
2d90afc503 TabBar: Don't return -1 when not visible in pixelMetric
Fixes tabs sometimes being invisible when leaving fullscreen

Correct fix for #1967
2017-01-27 15:34:29 +01:00
David Rosca
6525410e22 ComboTabBar: Fix drawing with correct selectedPosition 2017-01-27 14:24:39 +01:00
David Rosca
4e1a9079f3 ComboTabBar: Set QStyleOptionTabBarBase::selectedTabRect
Closes #1389
2017-01-27 14:06:06 +01:00
David Rosca
6132bf7789 ComboTabBar: Fix using correct value for tab animation duration 2017-01-27 14:00:09 +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
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
9082c32bae TabBar: Change close action text to "Close Tab" in context menu 2017-01-21 12:22:07 +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
29bccf9984 Use Qt Windows Extras instead of custom QtWin 2017-01-20 09:58:13 +01:00
David Rosca
89ff7ca10a TabIcon: Show audio tooltip only when mouse is over audio icon 2017-01-02 15:29:56 +01:00
David Rosca
20abaaf9f9 TabIcon: Draw audio icon in topright corner for pinned tabs 2017-01-02 13:31:22 +01:00
David Rosca
9bceb3f8b3 TabIcon: Draw audio icon on top of site icon for pinned tabs 2017-01-01 21:34:45 +01:00