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
9111b424a1
TitleBar: Also update the auto/hide button
...
For completeness, doesn't mean it's actually needed.
For issue #137 .
2021-01-14 11:39:15 +00:00
Sergio Martins
772b51216f
Merge branch '1.2'
2021-01-13 23:15:03 +00:00
Sergio Martins
a79a2f5ecb
Fix restoring non-closable state
...
For issue #137
A simpler solution than on master, doesn't include the refactoring.
2021-01-13 23:13:39 +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
7ddb95a417
Add a single TitleBar::updateButtons()
...
updateCloseButton() can now be private
2021-01-13 23:07:49 +00:00
Sergio Martins
02648eb54e
Update ChangeLog re PySide6
2021-01-13 22:51:18 +00:00
Sergio Martins
54a1050fbb
Add unit-test for issue #137
2021-01-13 22:23:44 +00:00
Sergio Martins
f997b2d2f0
qtquick: Fix build
2021-01-13 13:31:33 +00:00
Sergio Martins
8f61e57b57
Add DockWidget::Option::Option_DeleteOnClose
2021-01-13 12:54:18 +00:00
Sergio Martins
cfcff6f2d7
Minor rename
2021-01-12 22:49:07 +00:00
Sergio Martins
44d7cc0588
Add FloatingWindow::allDockWidgetsHave(option) and the any* variant
2021-01-12 22:42:38 +00:00
Sergio Martins
c91275d091
vscode: Use workspace files instead of project settings
...
So we can build for QtQuick too with different settings
2021-01-12 15:20:29 +00:00
Sergio Martins
69c88919c0
cmake: Export a compile_commands.json which helps vscode
...
Need to disable unity build otherwise intellisense can't find
our source files in the compile_commands.json. Only for the dev-*
presets anyway
2021-01-12 14:25:11 +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
7698584ee0
Fix potential invalid index when restoring layout
...
We save the index of each FloatingWindow when saving a layout,
but when restoring we might not want to restore all FloatingWindows,
for example, if we use a LayoutSaver with another affinity.
So, the index in Position::deserialize() should be a index to
LayoutSaver::Layout::floatingWindows, and not to DockRegistry::self()->floatingWindows()
since the later might be smaller.
2021-01-11 21:55:47 +00:00
Sergio Martins
d034722ba9
LayoutSaver: Add some utilities
2021-01-11 21:16:02 +00:00
Sergio Martins
e1e07c95ba
Merge pull request #134 from KDAB/python6
...
Added PySide6 support
2021-01-11 19:35:53 +00:00
Renato Araujo Oliveira Filho
4e79c68a7d
Added PySide6 support
...
Task-Id: KDDW-27
2021-01-11 16:31:49 -03:00
Sergio Martins
d80325ec8f
Merge branch '1.2' into master
2021-01-10 23:11:17 +00:00
Sergio Martins
e9925785ab
Cancel the drag if the draggable is destroyed
...
Can be destroyed for reasons we can't control or simply destroyed
because the draggable was docked/undocked
Fixes #120
2021-01-10 23:07:57 +00:00
Sergio Martins
81efda2d11
Add a QPointer guard for the draggable
...
So we can detect if it was deleted meanwhile
2021-01-10 23:00:19 +00:00
Sergio Martins
36eef80192
Also pass InitialOption to addDockWidgetToContainingWindow()
...
So you can control initial size and such
2021-01-09 13:58:56 +00:00
Sergio Martins
306bf26f66
Remove some qCDebug I never needed
2021-01-09 13:27:30 +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
63bb7e31cd
Remove unused method
2021-01-08 22:32:42 +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
5a2d000ddd
qtquick: Fix weak vtable
2021-01-08 18:25:14 +00:00
Sergio Martins
c73c26e5cb
tests: Fix overloaded signal "parentChanged()"
2021-01-08 18:24:51 +00:00
Sérgio Martins
39c3e4fd13
Fix flags being compared against internal flag enum
2021-01-08 17:09:49 +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
Sergio Martins
7f1347f15d
Overload DragRegistry::floatingWindows() to return windows being deleted too
2021-01-08 15:38:18 +00:00
Sergio Martins
2e498f644b
Remove unneeded multisplitter examples
...
We use the top-level examples instead
2021-01-07 16:45:29 +00:00
Sergio Martins
ee0272e036
Merge pull request #129 from mateoconlechuga/master
...
Add support for setting toggle action icon
2021-01-07 16:09:34 +00:00
Sergio Martins
4aa87c1758
Merge branch '1.2'
2021-01-07 11:15:29 +00:00
Sergio Martins
3b1158b82f
Fix potential crash uncovered by UBSAN
...
m_inCtor might be read before being initialized since when
the earlier members are initialized they can call back into
Frame.
2021-01-07 11:13:56 +00:00
Sergio Martins
1aee98bebd
README-WASM: Minor correction, library is static
2021-01-07 11:13:56 +00:00
Allen Winter
b5a6433950
Merge branch '1.2'
2021-01-06 10:55:54 -05:00
Allen Winter
077264fd54
CopyrightAssignmentForm.docx - update email address
2021-01-06 10:55:26 -05:00
Kevin Funk
bee653cf80
Streamline README.md a bit
2021-01-06 16:04:14 +01:00
Sergio Martins
e1363aadaa
Remove inclusion of moc from .cpp file
...
doesn't play nice with cmake unity build on older cmake
2021-01-06 14:40:40 +00:00
Sergio Martins
43877ca712
README: Added url of our WASM demo
2021-01-06 14:35:46 +00:00
Sergio Martins
f7cc54ad38
Merge branch '1.2'
2021-01-06 12:00:13 +00:00