Sergio Martins
6ce7c3c88b
Add boundPositionsForAllAnchors() method
2019-07-26 14:01:37 +01:00
Sergio Martins
d0be94e2dd
Also update Item's minSize before restoring placeholder
2019-07-26 11:52:21 +01:00
Sergio Martins
5c07a92f7f
Update item's min size when the frame's min size changes
2019-07-26 11:27:31 +01:00
Sergio Martins
4d9424e330
tests++
2019-07-26 10:50:49 +01:00
Sergio Martins
d7c5052e8f
Disable fuzzer for now, we'll re-enable it when it can do N runs
2019-07-26 10:50:13 +01:00
Sergio Martins
6946f3c64c
Make TestDocks a friend of Item
2019-07-26 10:49:38 +01:00
Sergio Martins
f5e72e7bed
Fix available space calculation when there's placeholders
...
When layout is empty we don't need to account for the space
occupied by the new anchor. But neither when all the items
are placeholders
2019-07-25 23:15:12 +01:00
Sergio Martins
e4d1c92b8a
Simplify test, this is enough to repro
2019-07-25 21:23:27 +01:00
Sergio Martins
d13ae5f03a
Add a failing test
2019-07-25 19:32:07 +01:00
Sergio Martins
e428b073c3
Fix saving minimum sizes of Item placeholders
...
Item::minSize() wasn't returning d->m_minSize
2019-07-25 19:01:05 +01:00
Sergio Martins
e58cab181a
Don't crash when restoring after a resize
2019-07-25 18:20:05 +01:00
Sergio Martins
359855856c
Add another sanity check
2019-07-25 17:48:04 +01:00
Sergio Martins
6ca50aecc7
Update the frame geometry when restoring the item
2019-07-25 17:17:27 +01:00
Sergio Martins
d50d5606e4
DebugView: Don't show our own window in the viewer
2019-07-25 17:03:13 +01:00
Sergio Martins
55544356c2
DebugWindow: Remove annoying modal dialogs
2019-07-25 16:27:57 +01:00
Sergio Martins
539f227bb1
Set the SeparatorWidget geometry before showing it
...
Otherwise it can go out of sync
2019-07-25 16:06:28 +01:00
Sergio Martins
84cd38b2e2
checkSanity: only check anchor geometry in case it's not following
2019-07-25 15:57:55 +01:00
Sergio Martins
aa073198e0
checkSanity: Check anchor geometries too
2019-07-25 15:56:06 +01:00
Sergio Martins
30983f6c07
debug++
2019-07-25 15:44:25 +01:00
Sergio Martins
c40c33d225
debug++
2019-07-25 15:36:30 +01:00
Sergio Martins
15fbd40bd1
DebugWindow: add checkSanity() and dumpDebug() options
2019-07-25 15:27:55 +01:00
Sergio Martins
133c323535
DebugWindow: Add a widget picker
...
Allows to select with mouse a widget, and it prints a qDebug
2019-07-25 15:15:32 +01:00
Sergio Martins
a6b33f106e
Really fix the spurious mouse press with MFC
...
Test the high-order short instead of the entire thing.
the low-order is still set for some reason, docs says it means "toggle"
like in caps-lock toggle. Which doesn't make any sense for mouse.
Anyway, just test the high-order as the docs say.
2019-07-25 14:56:24 +01:00
Sergio Martins
c645b8d9fa
Fix test that was failing on XCB and Windows but not on offscreen
...
Not sure why it didn't fail
2019-07-25 14:41:54 +01:00
Sergio Martins
7db4114703
Set s_restoringInProgress to the overloading taking a byte array too
2019-07-25 11:56:41 +01:00
Sergio Martins
53b0dd95d6
restore: Try to detect invalid streams
2019-07-25 11:56:41 +01:00
Sergio Martins
a31da9229c
Add a decent min size for widgets, 80x90 now
2019-07-25 11:13:00 +01:00
Sergio Martins
399a5d3c9a
restore: Also restore the geometry while we're at it
...
Not very important, as the Frame also has the geometry, but let's keep
things as they were
2019-07-25 10:15:11 +01:00
Sergio Martins
5befd7a3d5
restore: Also restore the ITem's min-size
2019-07-25 10:02:14 +01:00
Sergio Martins
d283af243b
restore: Clear helper properties
2019-07-25 09:36:33 +01:00
Sergio Martins
a5ee3cec27
Before closing really close all the dock widgets
...
The user app was able to ignore the QCloseEvent and the widget
wouldn't close, which would then mean it was deleted by it's parent
Frame during restore
2019-07-24 23:10:55 +01:00
Sergio Martins
c9b596238c
Add a failing test
2019-07-24 22:41:51 +01:00
Sergio Martins
a08f05607d
DebugDialog: Fix off-by-one
2019-07-24 22:22:27 +01:00
Sergio Martins
f62b8f85f8
DebugWindow: Add button for save restore
2019-07-24 21:53:17 +01:00
Sergio Martins
f204667676
DebugWindow: Fix typo in message box
2019-07-24 21:39:16 +01:00
Sergio Martins
d060c3970d
DebugWindow: Added a "Toggle float"
...
So we can hide/unhide dock widgets
2019-07-24 20:23:36 +01:00
Sergio Martins
2d2ac7ca06
Don't return false if there's nothing to restore
2019-07-24 18:38:50 +01:00
Sergio Martins
8a6297c5a5
Fix non-developer build
2019-07-24 18:23:16 +01:00
Sergio Martins
dc7d5a925c
tests++
2019-07-24 17:39:55 +01:00
Sergio Martins
fd795d9925
Only restore placeholders after the items are created
2019-07-24 17:30:03 +01:00
Sergio Martins
e18baa13d1
Add a Item ctor just for the case it's a placeholder
...
For use when we're restoring a layout
2019-07-24 17:20:30 +01:00
Sergio Martins
8f92e6490b
Add some convenience methods
2019-07-24 17:19:52 +01:00
Sergio Martins
77c48aa154
Also register frames, needed for restore
2019-07-24 12:42:13 +01:00
Sergio Martins
a40adbe0b8
Also restore the placeholder items
2019-07-24 11:54:32 +01:00
Sergio Martins
d66a14ee18
Register layouts
2019-07-24 11:52:49 +01:00
Sergio Martins
e5e590e498
Fix non-developer build
2019-07-24 10:29:50 +01:00
Sergio Martins
962b6d6779
Actually remove the qRegisterMetaType, Q_DECLARE_METATYPE is enough
...
The bug was fixed by using the fully qualified name in Q_PROPERTY
2019-07-24 09:52:05 +01:00
Sergio Martins
1788e6199b
Register ItemList in Anchor ctor and use fully qualified name
...
works now on gammaray
2019-07-24 09:49:46 +01:00
Sergio Martins
edd0443055
Fix Anchor::m_initialized not being true after a restore
...
Was causing Anchor::updateItemSizes() to be skipped
2019-07-23 22:55:18 +01:00
Sergio Martins
602f15df90
Register ItemList, trying to get it to appear on gammaray
2019-07-23 22:46:42 +01:00