Syarif Fakhri
9e9d166542
Add dockwidget tab order
2023-06-20 12:03:11 +08:00
Uwe Kindler
87954e4459
Merged #518 - Add more options to determine the minimum size of a dock widget
2023-06-06 15:25:49 +02:00
Uwe Kindler
7a79ecab8a
Fixed #511 - CDockWidget::toggleView now properly shows auto hide widgets
2023-04-28 11:47:01 +02:00
Uwe Kindler
2cd451c53c
Added dockContainer() function to AutoHideSideBar.cpp
2022-12-09 08:50:41 +01:00
Uwe Kindler
04ea1c68a7
Added option to auto hide a DockWidget or a DockArea to a specific sidebar location
2022-11-03 15:28:01 +01:00
Uwe Kindler
9c14c62637
Added setAutoHide() and toggleAutoHide() function to CDockWidget
2022-11-02 08:27:23 +01:00
Uwe Kindler
fda5887d50
Removed AutoHideInsertOrder enum - new side tabs are always appended.
2022-11-01 20:42:52 +01:00
Uwe Kindler
782af9a1fc
Renamed SideTabBar and DockWidgetSideTab into AutoHideSideBar and AutoHideTab for consistent naming
2022-11-01 12:06:59 +01:00
Uwe Kindler
d1d801cf16
Moved dock area restore code into CDockAreaWidget
2022-10-30 19:44:33 +01:00
Uwe Kindler
8d670577a9
Moved creation of SideTabWidget into AutoHideDockContainer.cpp
2022-10-28 16:28:23 +02:00
Uwe Kindler
38ee87f762
Merge branch 'duerr-ndt-auto_hide_feature' into auto_hide_feature_refactor
2022-10-28 11:17:13 +02:00
Uwe Kindler
f6b77f5c3c
Implemented showing and hiding of side bar when it does not contain any visible tab
2022-10-28 11:11:35 +02:00
Syarif Fakhri
c2bd56e2e9
add set size to allow the user to set a size for the pinned widget manually
2022-10-28 14:20:30 +08:00
Uwe Kindler
c94155fb06
Moved SideBarLocation enum out of CDockWidgetSideTab into global ads namespace
2022-10-27 10:22:28 +02:00
Uwe Kindler
866ccb2c4e
Reimplemented DockWidgetSideTab based on QPushButton
2022-10-18 16:43:39 +02:00
Syarif Fakhri
91190e8744
cleaner dock widget side tab click handling
2022-10-14 17:47:41 +08:00
Syarif Fakhri
ad0c2103bf
fix crash when using widgets that delete on close
2022-10-14 16:09:13 +08:00
Syarif Fakhri
8610a64b51
Rename overlayDockContainer -> AutoHideDockContainer
2022-10-13 14:26:54 +08:00
Uwe Kindler
62d3d73651
Made Auto Hide Feature independent from Focus Feature and renamed OverlayDockContainer to AutoHideDockContainer
2022-10-12 11:17:54 +02:00
Syarif Fakhri
32f9b4664b
Fix weird behavior when widget is overlayed
2022-09-19 18:11:47 +08:00
Syarif Fakhri
6998c0e585
double -> float
2022-09-15 09:43:15 +08:00
Syarif Fakhri
06bcf2cd48
Add insert order for overlayed widget to the side tab bar
...
- Set the default insert order to append
2022-09-14 15:52:34 +08:00
Syarif Fakhri
0e5329fd3e
add comment
2022-09-13 17:27:13 +08:00
Syarif Fakhri
ac311d6d45
Fix moving content to parent on toggle view
2022-09-13 17:26:46 +08:00
Syarif Fakhri
d394930d74
Change splitter proportion from int to double
...
- Allows for fine grain control (can now set 0.75 or 0.6)
- Makes more sense
2022-09-13 16:29:39 +08:00
Syarif Fakhri
4841d9b896
Set splitter sizes based on proportion settable in the dock widget
2022-09-13 11:20:46 +08:00
Syarif Fakhri
489f72aa0c
Add side tab widget icons
...
- Add config to prioritize icon only if it has one
2022-09-12 15:55:45 +08:00
Syarif Fakhri
22402e79f5
Added support for delete on close to overlayed widgets
2022-09-09 13:57:43 +08:00
Syarif Fakhri
84c6afa428
Reworked toggle view
...
Previous:
- It would just hide the overlay dock widget and leave the side tabs
still visible
- Close button, toggle view action would simply collapse the dock widget
intsead of completely hiding it
Current:
- Now toggle view and collapse functionality are separated.
- Toggle view will now hide the side tab bars completely
- Close button and toggle view action will completely hide it
- Collapse view will simply hide the overlay dock container without
hiding the side tabs
- Handled logic for floating widgets and toggling view
2022-09-09 12:18:41 +08:00
Syarif Fakhri
3e9dc7f4d6
Add initial functionality for Auto hide
...
- Add left and right side tab widgets
- Add overlay dock and overlay dock widget behavior
2022-09-06 13:30:26 +08:00
Uwe Kindler
bedd25021c
Fixed issue #429 - Raise floating widget on toggleView() request
2022-06-17 08:31:24 +02:00
Uwe Kindler
0e566cb8a3
Fixed #420 - Floating docks title doesn't update
...
added tests for DockWidget->setWindowTitle() in demo application
2022-05-10 13:41:19 +02:00
kzl
d5fefaa35f
while dockManager.removeDockWidget , the dockManager() returns null ( #399 )
2022-02-18 19:33:55 +01:00
Rodrigo Oliva
31e26c2c1c
Fix crash when adding closed dock widgets to the manager. ( #366 )
...
Co-authored-by: Rodrigo Oliva <Rodrigo.Oliva@king.com>
2021-10-20 16:54:47 +02:00
Uwe Kindler
de05ddd203
Renamed RecreateContentsWidgetOnCloseAndOpen into DeleteContentOnClose
2021-10-14 13:57:06 +02:00
Rodrigo Oliva
a08857804a
Add new flag that will delete the contained widget and recreate it from a factory when closing and opening the dock widget.
2021-10-10 21:37:16 +02:00
Uwe Kindler
401e8cf492
Improved initial size of floating dock widget
2021-07-30 13:50:17 +02:00
Walter Bormans
13853573ea
Additional Qt keyword conversion. ( #299 )
...
This comit is an addtion to pull request #295 . Not all Qt keywords were included.
Co-authored-by: Walter Bormans <walter.bormans@paradoxcat.com>
2021-01-22 06:18:34 +01:00
Uwe Kindler
5443e5f998
Merge branch 'centralwidget'
2020-08-24 13:44:19 +02:00
Uwe Kindler
835a532e75
Corrected constness of some functions, changed signatur of setCentralWidget function
2020-08-24 10:22:12 +02:00
Uwe Kindler
d383ade03c
Merge branch 'Central-Widget' of https://github.com/hulswit/Qt-Advanced-Docking-System into hulswit-Central-Widget
2020-08-24 09:50:12 +02:00
Yurii Miroshnyk
a565239c4a
Fixes pack. Parenting, memory leaks, floating widgets deleting.
...
* DockWidget always has DockAreaWidget as parent. It's not necessary to make it nullptr. This fixes many bugs related to restoring inactive tabbed DockWidgets.
* Fixed memory leaks related to QBoxLayout::takeAt().
* Fixed algorithm of deleting remaining floating widgets after restore.
2020-08-21 19:24:55 +03:00
shelomentsev
703a9b3e12
Update the state of close button on titlebar and tabbar when CDockWidget::DockWidgetClosable changed. ( #240 )
2020-08-21 08:09:13 +02:00
hulswit
1a11e5ddcd
Central Widget concept added
...
Adde option to set a dock widget as central widget. It influences resizing behavior of the splitters. The central widget will be stretched with the main window and remaing dock widgets and threir respective areas will be resized only vertically if docked left or right and horizontaly if docked top or bottom
2020-08-20 16:36:02 +02:00
Uwe Kindler
e71884b23d
Replaced configFlags().testFlag() with testConfigFlag() to improve code readibility
2020-06-11 08:06:37 +02:00
Uwe Kindler
e63d1b1683
Fixed a bug that caused invisible TabWidget for dock widgets that are not part of a restored state
2020-06-10 16:07:42 +02:00
Uwe Kindler
312a8cf500
Enabled ClickFocus for CDockWidget to support focussing in case the content does not support it
...
Renamed FocusStyling to FocusHighlighting
2020-06-06 14:59:03 +02:00
Uwe Kindler
1848ffa35a
Properly reset widget pointer to nullptr in takeWidget()
2020-05-26 06:41:40 +02:00
Uwe Kindler
cbd2fcb0d3
Fixed CDockWidget::setWidget function to test for QAbstractScrollArea instead of QScrollArea
...
Now setWidget properly supports ItemViews like QTreeView or QTableView
2020-04-27 16:51:46 +02:00
Uwe Kindler
8aae6bf70b
Added DockWidget functions setAsCurrentTab, raise, isCurrentTab, isTabbed
2020-04-13 22:16:47 +02:00