Waqar Ahmed
7af2095f2f
Allow switching tabs via context menu in the tabs area
...
This change allows you to switch tabs via the context menu. The context
menu only shows up if you click on the empty area beside the tabs.
Can be tested with `--allow-switch-tabs-via-menu` option in the example.
Fixes #232
Signed-off-by: Waqar Ahmed <waqar.ahmed@kdab.com >
2021-09-11 12:46:23 +01:00
Allen Winter
7001aa58ce
clang-format on code base
2021-07-12 17:05:37 -04:00
Sergio Martins
ced1c4dcc8
TabWidgetWidget: Don't hardcode margins, so we support DPI != 96
...
For people using font DPI instead of DPR
2021-07-01 22:17:31 +01:00
Sergio Martins
e1578436d0
Added Flag_ShowButtonsOnTabBarIfTitleBarHidden
2021-07-01 18:08:41 +01:00
Jacob Young
8504252142
Handle tab icon updates
...
Closes PR #135
2021-04-05 06:26:47 +01:00
Sergio Martins
78c2cdddc4
minor: Make indexOfDockWidget() take a const dock widget
...
So it can be called from const places
2021-01-29 18:22:20 +00:00
Allen Winter
875544a449
Merge branch '1.2'
2021-01-02 09:32:20 -05:00
Allen Winter
a2f4c972a6
update copyright year
2021-01-02 09:27:50 -05:00
Sergio Martins
d6dea6f426
TabWidget: Remove paint event hack
...
Origin unknown, came from "initial commit".
Can't notice any difference without it. Users can do such hacks
by overriding it
2020-12-27 12:58:12 +00:00
Sergio Martins
e9159a08bd
Fix build when usign installed TabWidget_p.h
2020-12-21 13:31:10 +00:00
Sergio Martins
9ddd65ea71
qtquick: tidy some connects
2020-12-20 15:37:17 +00:00
Sergio Martins
a123437d03
qtquick: Implement the TabWidget backend
...
Not yet connected to the GUI.
2020-12-20 12:06:29 +00:00
Sergio Martins
0a2aebd78d
FocusScope: Also focus when the user clicks on tab widget background
...
Relevant when you don't have a title bar
2020-11-03 15:29:13 +00:00
Sergio Martins
371fd361a8
Detach when double-click on tab bar background, if no title bar
...
When a title bar isn't visible, we need a way to detach an entire
group of tabs by double clicking, required for wayland.
Implemented for all platforms, as it makes sense
2020-10-19 11:42:39 +01:00
Sergio Martins
51ccbe7c7c
Move TabBar::detachTab() to Frame
...
As the code doesn't have anything specific to QTabBar.
Means QtQuick can reuse it without needing a TabBarQuick.
tst_crash now passes for QtQuick too
2020-10-18 23:07:13 +01:00
Sergio Martins
7080712501
Rename the tab's title if its dock widget changes
2020-09-21 16:19:35 +01:00
Sergio Martins
2cb25fefe4
Minor: Add the tab widget as a member
2020-09-11 23:40:41 +01:00
Sergio Martins
4b4d839074
Expose more private API so users can use the full power
...
Installed more private headers.
TabWidget_p.h was moved into widgets/ as the QtQuick impl won't
use that abstraction. Could even be folded into TabWidgetWidget.
Fixes #65
2020-08-25 21:46:46 +01:00
Allen Winter
b4f49895c2
clarify: licensing is GPL2 or GPL3 or commercial licensed
...
follow the REUSE specs
2020-07-24 18:16:13 -04:00
Allen Winter
df692686e7
various - update copyright year
2020-01-07 11:36:56 -05:00
Sergio Martins
38949fac2a
Fix build without find_package()
...
Some of our projects have kddockwidgets directly in their build
2019-10-21 14:30:04 +01:00
Sergio Martins
787f7802be
Move the private code into a private/ folder
...
It's nice to have a similar include hierarchy at build time and install
time.
It also makes things more explicit
2019-10-20 19:24:54 +01:00