Sergio Martins
772afe29ea
Merge branch '1.3'
2021-02-26 15:45:46 +00:00
Sergio Martins
9c78953800
Fix tests on linux
...
Native title bar is specific to Windows
2021-02-26 15:38:00 +00:00
Sergio Martins
acdf03fc84
Merge branch '1.3' into master
2021-02-24 13:56:28 +00:00
Sergio Martins
a6f19e07c4
Fixed Flag_NativeTitleBar not hidding the client title bars
...
When restoring the layout the native title bar would be visible
Fixes #170
2021-02-24 13:52:44 +00:00
Sergio Martins
a73746fe8b
tests: Use the MultiSplitter base class in a few places
2021-02-09 16:12:22 +00:00
Sergio Martins
da1fddffe1
Decouple MultiSplitter from MainWindow and FloatingWidget
...
They deal in its base class instead (LayoutWidget)
2021-02-09 16:05:56 +00:00
Sergio Martins
51dc666181
Added DockWidget::setFloatingGeometry()
...
Closes #144
2021-02-07 17:26:01 +00:00
Sergio Martins
4c33cd6409
Sidebar overlays now maintain their size when toggled
...
Fixes #155
2021-02-06 22:55:14 +00:00
Sergio Martins
6ee1900331
Add a test for issue #155
2021-02-06 19:43:26 +00:00
Sergio Martins
863691c313
Remove some private API from DockWidgetBase.h
...
Moved it into the pimpl
2021-02-06 16:32:13 +00:00
Sergio Martins
38443048b8
Merge branch '1.2'
2021-02-05 16:42:07 +00:00
Sergio Martins
f1e4f7ecda
Add another test
2021-02-05 14:34:12 +00:00
Sergio Martins
249d1b6790
Remove from the sidebar when floating a widget
...
Fixes #162
2021-02-05 12:35:03 +00:00
Sergio Martins
894e0fd03a
Added test for issue #162
2021-02-05 11:49:52 +00:00
Sergio Martins
dadf57c184
Merge branch '1.2'
2021-02-04 19:59:29 +00:00
Sergio Martins
7caa83be19
Also hide overlay when clicking on empty space of a main window
2021-02-04 19:56:35 +00:00
Sergio Martins
e745d38b1e
Improve the test a bit
...
clicking on the bottom is not very effective as that's where the
bottom sidebar is
2021-02-04 19:52:21 +00:00
Sergio Martins
6d389315bf
Add test for issue #157
2021-02-04 19:31:31 +00:00
Sergio Martins
799f2a81a7
Remember previous tab position when toggling float
...
This was already the case, but didn't work in case the tabs
were re-oredered by the user manually
Fixes #154
2021-01-29 19:15:23 +00:00
Sergio Martins
eb9fa6f567
Add unit-test for issue #154
2021-01-29 19:07:32 +00:00
Sergio Martins
9ebd595202
Remove stray debug
2021-01-29 18:32:23 +00:00
Sergio Martins
b01b8908ea
qtquick: Fix build
...
That test is QtWidgets only
2021-01-29 18:23:37 +00:00
Sergio Martins
ee759a5459
Don't trigger "Delete on Close" when sending to the sidebar
2021-01-28 22:40:41 +00:00
Sergio Martins
17638bc29f
Fix regression with DockWidget::toggleAction()
...
Added unit-test too.
While we're processing the toggle action triggering isOpen() is
always false.
2021-01-21 16:16:29 +00:00
Sergio Martins
40a549ca29
Fix double delete screwing with lastPositions()
...
Fixes #141
2021-01-18 23:37:17 +00:00
Sergio Martins
cac435a2a5
tests: Add missing cleanup
2021-01-18 22:52:54 +00:00
Sergio Martins
dbf357ce66
Fix restoring window maximized state
...
Fixes #81
2021-01-16 22:37:30 +00:00
Sergio Martins
e950cf7fc3
tests: Add a test for issue #81
2021-01-16 21:38:36 +00:00
Sergio Martins
6a550c6c4a
Added Config::Flag_CloseOnlyCurrentTab
...
When clicking on the TitleBar's close button it closes all the
dock widgets in the tab, by default. With the new option it will
close only the current tab
2021-01-16 13:06:29 +00:00
Sergio Martins
ab257b3468
float docked widgets that have LayoutSaverOption::Skip before restore
2021-01-15 21:30:38 +00:00
Sergio Martins
c52446f3b0
Merge branch '1.2'
2021-01-15 09:27:17 +00:00
Sergio Martins
161b33370e
Add more tests
2021-01-15 09:04:05 +00:00
Sergio Martins
8dd7a90b34
Add convenience DockWidgetBase::isInSideBar()
2021-01-15 08:52:17 +00:00
Sergio Martins
7ff865a36f
tests: Add test for #139
2021-01-15 08:44:21 +00:00
Sergio Martins
d0b8ee606a
Honour LayoutSaverOption::Skip for floating windows with many dock widgets
...
If all dock widgets in the floating window have the Skip flag then the
FloatingWindow can too
2021-01-14 18:33:29 +00:00
Sergio Martins
e1cf532437
tests: Add an XFAIL for a LayoutSaverOption::Skip case
2021-01-14 17:57:37 +00:00
Sergio Martins
67f2127710
Add one more unit-test regarding DeleteOnClose
2021-01-14 17:51:02 +00:00
Sergio Martins
585c0d64ed
Fix close button enable state not being restored with LayoutSaver
...
Fixes #137
2021-01-13 23:07:49 +00:00
Sergio Martins
54a1050fbb
Add unit-test for issue #137
2021-01-13 22:23:44 +00:00
Sergio Martins
8f61e57b57
Add DockWidget::Option::Option_DeleteOnClose
2021-01-13 12:54:18 +00:00
Sergio Martins
e0e6f55868
Introduce DockWidgetBase::LayoutSaverOptions enum
...
The first enumerator is "Skip", meaning the dock widget won't
be affected by save/restore. It won't disappear while restoring,
and won't be shown if already hidden. (only applies to floating widgets)
2021-01-11 23:33:32 +00:00
Sergio Martins
e07fb7f121
DockWidget::addDockWidgetToContainingWindow() now accepts docking to main window
...
Was already stated in the docs that it would work with a main window but implementation
only allowed floating window.
Fixes #132
2021-01-09 13:24:06 +00:00
Sergio Martins
bc86cfcb1f
Move Item::insertItem() to the derived class
...
Item itself doesn't know how to insert into the layout.
We'll soon have a new derived class which will do things differently
2021-01-09 00:11:59 +00:00
Sergio Martins
1840d50fc0
Move LayoutBorderLocation out of Item
...
It only affect the box layout
2021-01-08 22:24:53 +00:00
Sergio Martins
c6fd4e4bc4
Remove duplicate Location enum
...
No longer needed
2021-01-08 22:11:03 +00:00
Sergio Martins
46210203f7
Rename ItemContainer to ItemBoxContainer
2021-01-08 22:02:02 +00:00
Sergio Martins
011d83b7d9
tests: Also restore the internal flags
2021-01-08 09:03:24 -08:00
Sergio Martins
26f1b75976
tests: delete the dockwidgets when each test ends
...
Will save us from doing manual cleanup.
2021-01-08 08:45:28 -08:00
Sergio Martins
309a90d3a6
tests: Fix a test on windows
2021-01-08 08:28:41 -08:00
Sérgio Martins
946e1e977e
tests: Make sure our own stuff is deleted
...
but don't care about other stuff.
Other QWindows might be deleted delayed. We care more about
DockWidget and MainWindow due to their unique names. They need to
be deleted before the next test starts.
2021-01-08 15:43:04 +00:00