Sergio Martins
7198bdf826
wip
2020-04-22 20:31:54 +01:00
Sergio Martins
042d466a48
wip
2020-04-13 20:41:24 +01:00
Sergio Martins
c39805704d
Fix and uncomment more tests
2020-04-13 18:21:59 +01:00
Sergio Martins
da4a1e9302
wip
2020-04-10 15:45:28 +01:00
Sergio Martins
93fec759ed
wip
2020-04-10 13:07:56 +01:00
Sergio Martins
37afe34a22
wip
2020-04-09 00:16:08 +01:00
Sergio Martins
2a0abe60f9
wip
2020-04-05 22:15:02 +01:00
Sergio Martins
c03a786025
wip
2020-04-05 14:02:58 +01:00
Sergio Martins
a5a7019d5a
wip
2020-04-05 13:52:06 +01:00
Sergio Martins
4be5b72208
wip
2020-04-05 13:27:21 +01:00
Sergio Martins
f6200739ff
wip
2020-04-05 13:22:06 +01:00
Sergio Martins
4997970800
wip
2020-04-04 17:59:16 +01:00
Sergio Martins
b455ecae74
wip
2020-04-04 16:35:13 +01:00
Sergio Martins
acf8705590
wip
2020-04-04 14:39:45 +01:00
Sergio Martins
9a18276819
wip
2020-04-04 13:12:06 +01:00
Sergio Martins
1c16eff3e1
wip
2020-04-03 20:03:24 +01:00
Sergio Martins
6a7291080f
Example builds
2020-04-03 18:44:29 +01:00
Sergio Martins
8539a9f1a4
KDDockWidgets builds now
2020-04-02 20:48:12 +01:00
Sergio Martins
4734f06046
builds
2020-04-02 19:43:36 +01:00
Sergio Martins
76eb54e86f
WIP: Anchor.cpp now builds
2020-04-01 15:19:22 +01:00
Sergio Martins
1643f23612
WIP
2020-04-01 12:02:47 +01:00
Sergio Martins
9904d847f2
LayoutSaver now can save/restore a sub-set of windows
...
Each subset is identified by its "affinity name".
See DockWidget/MainWindow setAffinityName property.
Patch contributed by Andras Mantia, I've changed it to deal in
terms of affinity names instead of unique names.
2020-03-01 14:25:31 +00:00
Sergio Martins
ee786f57c5
LayoutSaver: Fix rounding errors when doing a relative restore
...
After a restore with relative sizes the items might not be on a pixel
perfect position regarding to their anchors. Make sure they are after
the restore is complete.
2020-02-25 23:24:39 +00:00
Sergio Martins
2155e11bd7
Debug++
2020-02-25 23:13:41 +00:00
Sergio Martins
3f732e91a7
Minor refactoring
2020-02-25 22:53:28 +00:00
Sergio Martins
81c180fbfd
Debug++
2020-01-27 22:12:28 +00:00
Sergio Martins
07f9e9a0df
Fix fuzzer testcase failing/2.json
...
And renamed it to 17.json, as we already have an unrelated 2.json.
The removed check isn't needed, as we'll check again when we
finish restoring the placeholder. It was also a false-positive
warning sometimes because boundPositionForAnchor() would fail
since the "anchors following" wasnt initialized yet, as we do
a clearAnchorsFollowing while restoring the placeholder
2020-01-27 18:47:37 +00:00
Sergio Martins
6dd8a0cda1
Debug++
2020-01-27 18:35:01 +00:00
Sergio Martins
25f3e83fc3
Debug++
2020-01-27 18:30:13 +00:00
Sergio Martins
8898ec82a4
Don't account for the anchor thickness of an anchor which is following
...
Fixes fuzzer testcase 10
2020-01-24 11:26:35 +00:00
Sergio Martins
9ca03b65f0
Improve comment
...
The function already explains what it does.
2020-01-24 10:12:15 +00:00
Sergio Martins
da3917ae64
Replace assert with a warning and early return
...
A warning will still abort the unit-tests, so it's fine
2020-01-22 22:53:18 +00:00
Sergio Martins
0003b508d6
Bound interval when adding the widget
...
rectForDrop() doesn't know about the anchors bounds, so we need to
adjust the interval after. Fixes fuzzer testcase 16
2020-01-22 22:49:45 +00:00
Sergio Martins
d5162efa31
When calculating bounds start from the anchor we're following
2020-01-22 21:50:39 +00:00
Sergio Martins
a71361341c
Don't warn when updateAnchorFollowing is being executed
2020-01-22 21:46:18 +00:00
Sergio Martins
4ca140c0cc
Fix unmatched beginBlockPropagateGeo()
...
Fixes an assert
2020-01-08 09:56:03 +00:00
Allen Winter
df692686e7
various - update copyright year
2020-01-07 11:36:56 -05:00
Sergio Martins
6be6aee56a
Fix dock widgets not filling their complete available space
...
To repro:
- stack 3 dock widgets vertically
- close the top one
- close the top one
The remaining one should now fill the whole window but it wasn't.
Culprit was the code that makes sure that when a dock is closed that
the adjacent ones get to share their space
2019-12-23 14:28:40 +00:00
Sergio Martins
af1a26ef59
Debug++
2019-12-08 16:37:53 +00:00
Sergio Martins
83f6bb8daf
Remove some sanity checks, no longer needed
...
Silenced a false-positive warning about anchor visibility.
It was invisible because we're within a main window show()
It will be checked by the unit-tests and fuzzer anyway. No need to
do it in production.
2019-10-22 15:28:50 +01:00
Sergio Martins
de42a4a33c
Remove some asserts that aren't needed anymore
...
They were useful during development.
They have a warning anyway, so the tests and fuzzer will still fail
if something bad happens
2019-10-20 20:32:35 +01:00
Sergio Martins
787f7802be
Move the private code into a private/ folder
...
It's nice to have a similar include hierarchy at build time and install
time.
It also makes things more explicit
2019-10-20 19:24:54 +01:00