Sergio Martins
6c18b25d00
DebugWindow: Add option to update and to print to png
2019-07-26 21:50:51 +01:00
Sergio Martins
c12a691433
Update Frame's icon and title when the dock widget's title/icon changes
2019-07-26 18:38:05 +01:00
Sergio Martins
f6304ee21e
refactor
2019-07-26 18:29:07 +01:00
Sergio Martins
a238b61ebf
Emit signal when icon changes
2019-07-26 18:22:42 +01:00
Sergio Martins
e55d4a97b7
also disable native parents in the dock widget ctor
...
since the client widget might already be parented to DockWidget,
so at least we stop it there
2019-07-26 18:10:32 +01:00
Sergio Martins
5ba23f3c5d
Add hasIcon property for gammaray
2019-07-26 18:05:57 +01:00
Sergio Martins
b196d6fad9
Add WA_DontCreateNativeAncestors
...
This is a good default to have, so we're shielded from the client
widget
2019-07-26 17:14:40 +01:00
Sergio Martins
a6270137ec
Debug++
2019-07-26 16:21:05 +01:00
Sergio Martins
10047fcd38
DebugWindow: Add a way to detach central widget for debug
2019-07-26 15:58:33 +01:00
Sergio Martins
61f6cdc650
DebugWindow :Print the geometry too
2019-07-26 15:55:43 +01:00
Sergio Martins
f624cf7bf4
Uncomment check which passes now
2019-07-26 14:40:01 +01:00
Sergio Martins
1a8a409f6f
Fix some out of bounds positionings
...
When calculating the cumulative min length some anchor thicknesses
were being accounted for because we had cleared the placeholders
2019-07-26 14:21:57 +01:00
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