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

54 Commits

Author SHA1 Message Date
David Rosca
d7146519b4 ComboTabBar: Fix draggedTabRect returning rect of current instead of pressed index 2018-01-11 19:50:26 +01:00
David Rosca
b2de2a00f4 ComboTabBar: Fix tabPixmap with high-dpi 2018-01-11 19:50:23 +01:00
David Rosca
95921692be ComboTabBar: Apply padding adjustment to all tabs 2018-01-11 19:49:03 +01:00
David Rosca
50d1bb6d96 ComboTabBar: Add possibility to change base color from stylesheets 2018-01-11 19:46:33 +01:00
David Rosca
68ed91c909 ComboTabBar: Block moving tabs outside of tabbar 2018-01-11 19:46:03 +01:00
David Rosca
26a2b55c24 ComboTabBar: Don't call QTabBar paintEvent implementation during drag
Implement udpating geometry of moving tab.
2018-01-11 19:45:58 +01:00
David Rosca
8ea8b56f27 ComboTabBar: Add draggedTabRect method 2018-01-11 19:45:46 +01:00
David Rosca
4e988ac8f2 ComboTabBar: Fixes in drawing tabs with drag offset
m_dragInProgress is now only true when dragging tab, not during
the tab sliding to target position animation.
2018-01-11 19:45:32 +01:00
David Rosca
4c7eaf0f9f ComboTabBar: Add support for tabPadding property
Workarounds bug where tabs have zero padding when styled using style
sheets.
2018-01-11 19:44:50 +01:00
David Rosca
e617f3f6ec ComboTabBar: Fix drop indicator position on last tab 2018-01-11 19:44:45 +01:00
David Rosca
679a5f0136 ComboTabBar: Also use our TabBarHelper drawing code when drag is in progress 2018-01-11 19:44:40 +01:00
David Rosca
7e8b2a103b ComboTabBar: Draw tab as only one in tabbar in tabPixmap 2018-01-11 19:43:33 +01:00
David Rosca
4c494ebfb0 ComboTabBar: Improve drop indicator drawing
Code was taken and modified from KFilePlacesView
2018-01-11 19:31:41 +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
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
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
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
e150e44cc6 Replace Q_OS_MAC with Q_OS_MACOS 2017-02-10 19:00:58 +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
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
2349ca8912 ComboTabBar: Disable focus for scroll area 2016-12-26 15:18:34 +01:00
David Rosca
4c7735139e ComboTabBar:: Call ensureVisible only after resize event is processed
Also change delay to call ensureVisible after current tab is changed
to 100ms
2016-08-15 14:47:30 +02:00
David Rosca
f93ea0e199 Fix use of deprecated QStyleOptions 2016-04-24 10:49:54 +02:00
David Rosca
779292713f ComboTabBar: Add small space between pinned and main tabbar 2016-01-31 12:37:02 +01:00
David Rosca
ac792de566 TabBar: Improve logic to calculate pinned tab width 2016-01-25 13:33:05 +01:00
David Rosca
fb4782dab2 ComboTabBar: Event handling cleanup 2015-11-06 18:12:48 +01:00
David Rosca
83b7f8f441 ComboTabBar: Call ensureVisible() in resize event 2015-11-06 18:10:02 +01:00
David Rosca
e127000cb7 ComboTabBar: Remove blured background support 2015-10-11 10:52:04 +02:00
David Rosca
53e4512d31 ComboTabBar: Fix showing tooltip when animating scrolling 2015-10-11 10:51:16 +02:00
S. Razi Alavizadeh
37ce38bbf8 TabBarHelper: Fix a rare bug and compute pressed index, correctly. 2014-12-25 15:16:31 +03:30
S. Razi Alavizadeh
4ea5974914 [Windows] Fixed some issue with the blur background effect,
- Also moved all of codes related to blur effect of tabbar to ComboTabBar.
2014-05-29 01:08:42 +04:30
David Rosca
0b6478d110 [ComboTabBar] Use initStyleOption workaround only for Bespin theme
It is needed only with Bespin.
With other themes, it actually makes it worse.
2014-05-03 11:40:14 +02:00
David Rosca
34feb19dab [Code] TabHelper: Rename m_pinnedTabBar to m_isPinnedTabBar
[ci skip]
2014-05-02 22:16:48 +02:00
David Rosca
78fbccae15 [ComboTabBar] Correctly set QStyleOptionTab::position for tabs
This fixes rendering of OnlyOneTab with Bespin theme.
2014-05-02 22:15:36 +02:00
David Rosca
90760eaa2b [ComboTabBar] Draw tabbar base even when main tabbar is empty 2014-05-02 21:39:08 +02:00
David Rosca
a30aac169a [ComboTabBar] Fixed pinned tabs being hidden when there are no normal tabs 2014-05-02 21:25:49 +02:00
David Rosca
964a76c04b [ComboTabBar] Correctly switch tabs when closing last tab in tabbar
Also remove custom logic for SelectPreviousTab on tab remove and use
only the QTabBar's selectionBehaviorOnRemove

Fix 1 for #1322
2014-05-02 20:02:33 +02:00
David Rosca
7fc7558221 [ComboTabBar] Correctly returns tabAt over tab icon 2014-05-02 13:35:01 +02:00
David Rosca
028db62be0 [ComboTabBar] Set objectName of base widget, so it can be styled
TabBar base is now correctly styled in all themes.
Updated the themes accordingly to this change.
2014-04-20 13:03:08 +02:00
David Rosca
6797433e39 [ComboTabBar] Fixed tabAt() on scroll buttons 2014-04-19 18:47:44 +02:00
David Rosca
97d32a1191 [Mac] Drawing QTabBar without actual object crashes on Mac
[ci skip]
2014-04-15 09:58:51 +02:00