Sergio Martins
195c8121c0
fuzzer: Simplify names for 2.json
2020-01-27 15:17:30 +00:00
Sergio Martins
2b1518b1c2
Fuzzer: Add a new failing testcase
2020-01-27 15:10:55 +00:00
Sergio Martins
ca98d376b7
fuzzer: Move 14.json from failing to ok
...
It passes now
2020-01-24 20:05:43 +00:00
Sergio Martins
16b564a005
Add a test which is failing on macOS
2020-01-24 20:02:26 +00:00
Sergio Martins
c3483ba480
Fix ensureMinSize making the item smaller
...
this function should either make it bigger or leave it.
Never make it smaller.
Fixes fuzzer testcase 14
2020-01-24 18:13:19 +00:00
Sergio Martins
162bf0e828
Don't move anchors that are following others
...
Move the real ones instead. Fixes some bugs found with the fuzzer.
2020-01-24 16:19:42 +00:00
Sergio Martins
3bbeec06f8
DebugWindow: Allow to toggle a dock widget
2020-01-24 15:48:35 +00:00
Sergio Martins
2f3b7642ed
Fix debug window crash
2020-01-24 12:04:45 +00:00
Sergio Martins
068eb7cc25
fuzzer: trim 15.json a bit
...
smaller and still repro
2020-01-24 11:52:51 +00:00
Sergio Martins
8c37c3a7ec
fuzzer: print the name of the failing test
2020-01-24 11:38:21 +00:00
Sergio Martins
e2d47001db
fuzzer: Move failing tests to a failing directory
...
So we can run the correct ones with *.json
2020-01-24 11:37:45 +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
b80a795968
Improve comments on this function
2020-01-24 10:02:22 +00:00
Sergio Martins
8aaffa26c6
Fix build with c++11
2020-01-24 09:31:22 +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
08cbbd5178
Fix Anchor::cumulativeMinLength() not returning correct result
...
For complex situations with placeholders.
Now the way the number of anchors to take into account is easier.
It's simply numNonPlacholderItems -1.
2020-01-22 20:54:55 +00:00
Sergio Martins
94c02a1fe9
Fix case where the bounds wouldn't count with the actual anchor
...
Now the method is split in two and the preamble will always
add it
2020-01-22 18:05:13 +00:00
Sergio Martins
8a05980cd5
Minor refactoring
2020-01-22 17:40:50 +00:00
Sergio Martins
45b2fb63bc
Fix frames with duplicate name in the debug output
...
when a tab is removed, update the frame's object name
Was making it very difficult to debug the fuzzer's output
2020-01-22 15:05:34 +00:00
Sergio Martins
4a6b73cae1
fuzzer: Decouple skipping last from no quitting
...
There's two separate options now, as it's useful to pause without
skipping the last test
2020-01-22 14:44:56 +00:00
Sergio Martins
d738fbd154
fuzzer: Fix description of skipped operation
...
Only generate the description after all other dockwidgets are placed
, as the state of the others will be in the last description too
2020-01-22 12:47:42 +00:00
Sergio Martins
7c10ab37f4
fuzzer: print description of skipped operation
...
involves making sure the description is generated
2020-01-22 11:54:09 +00:00
Sergio Martins
460d3f9ec1
fuzzer: Print the skipped operation
2020-01-22 11:48:04 +00:00
Sergio Martins
4c19ccade7
fuzzer: don't destroy the windows when we use -d
...
so we can debug the app
2020-01-22 11:36:49 +00:00
Sergio Martins
03cc8abd94
fuzzer: Add skipAndPause (-d) option
...
So we can pause before the last test and debug the app
2020-01-22 11:17:59 +00:00
Sergio Martins
8447cefc14
fuzzer: trim testcase 16
...
Now has the minimum to reproduce
2020-01-22 10:56:11 +00:00
Sergio Martins
141cbc55f4
add a failing testcase
2020-01-21 22:05:32 +00:00
Sergio Martins
873978a99e
Add some failing testcases
2020-01-21 22:05:03 +00:00
Sergio Martins
b8279633ac
fuzzer: add an -l option, so it loops until it crashes
2020-01-21 17:10:29 +00:00
Sergio Martins
cfa1cc47b6
Rephrase the warning about the insane layout
2020-01-13 12:50:45 +00:00
Sergio Martins
4ca140c0cc
Fix unmatched beginBlockPropagateGeo()
...
Fixes an assert
2020-01-08 09:56:03 +00:00
Allen Winter
d505eeb0a5
LICENSE.GPL.txt - https: urls
2020-01-07 11:39:33 -05:00
Allen Winter
df692686e7
various - update copyright year
2020-01-07 11:36:56 -05:00
Sergio Martins
a25435fc2d
Remove leftover duplicate close button
...
also fixes a weird hover effect when mouse is over the title bar
2020-01-07 15:53:59 +00:00
Sergio Martins
fbfbf2d801
Fix crash only reproducible in debug mode
...
don't dereference 'this' after it's deleted
2020-01-05 22:58:15 +00:00
Sergio Martins
63a75d7be9
Fix window decorations on Windows + Qt-5.9
...
For some reason our WC_NCCALCSIZE tricks aren't working and we need
to explicitly create the window. Works correctly since 5.10
Fixes #22
2020-01-05 18:37:53 +00:00
Sergio Martins
2ff2b78f5a
Fix unit-tests on Windows with Qt 5.9
...
Our RAII class that ensures that each test leaves 0 top-levels behind
was being initialized with somthing bigger than 0 since the
rectForDrop() test wasn't doing proper cleanup.
Not sure why only repro with 5.9, but it's correct now.
2020-01-04 22:24:11 +00:00
Sergio Martins
6be2490c08
tests: When cleanup fails print the top-levels that we compared to
...
Since qApp->topLevels() contains buttons which will be deleted later
2020-01-04 21:15:39 +00:00
Sergio Martins
f37ecc0765
tests: Remove test with hardcoded values
...
It's flaky as the min sizes are varying with Qt versions. Also what
it tests is already tested in previous tests and elsewhere.
2020-01-04 18:33:43 +00:00
Sergio Martins
3b20f99092
tests: Add some missing window cleanup checks
2020-01-04 18:27:20 +00:00
Sergio Martins
9f5c7b5e6a
tests: Use fusion style on all platforms
...
To make the tests more robust, as some widgets min size will
vary
2020-01-04 18:19:26 +00:00
Sergio Martins
4b0b11acee
tests: Use QElapsedTimer instead of QTime::start()
...
The later is deprecated
2020-01-04 18:11:34 +00:00
Sergio Martins
9b8709724c
Fix namespaced build
2020-01-03 11:29:29 +00:00
Sergio Martins
e5df8db045
tests: Add some tests for double close
2019-12-29 18:29:27 +00:00
Sergio Martins
9c6fd9ba0e
Add support for lazy resize
...
In this mode the resize is only done when mouse is released.
Fixes #21
2019-12-29 17:55:19 +00:00
Sergio Martins
927510dfff
Support re-ordering tabs with mouse
...
Just set KDDockWidgets::Config::Flag_AllowReorderTabs before creating
the dock widgets.
Fixes #20
2019-12-26 15:19:27 +00:00