Commit Graph

288 Commits

Author SHA1 Message Date
Sergio Martins
477b42b4a9 wip 2020-04-30 16:47:20 +01:00
Sergio Martins
fccb6f0cb2 wip 2020-04-29 21:47:13 +01:00
Sergio Martins
32ff511b33 wip 2020-04-29 21:39:02 +01:00
Sergio Martins
03572617d4 wip 2020-04-29 21:35:00 +01:00
Sergio Martins
24e893dfd7 wip 2020-04-29 21:03:14 +01:00
Sergio Martins
bba7ddc4a5 wip 2020-04-27 19:46:58 +01:00
Sergio Martins
52e945c900 wip 2020-04-27 19:31:21 +01:00
Sergio Martins
de60913a88 wip 2020-04-26 16:56:34 +01:00
Sergio Martins
54b5d7fb4f wip 2020-04-25 16:26:15 +01:00
Sergio Martins
f86c45a94a wip 2020-04-25 16:12:39 +01:00
Sergio Martins
b51d1d1812 wip 2020-04-25 16:09:37 +01:00
Sergio Martins
9111b6b525 wip 2020-04-25 00:04:42 +01:00
Sergio Martins
7738513851 WIP 2020-04-24 23:46:51 +01:00
Sergio Martins
949e3756e9 wip 2020-04-23 23:09:25 +01:00
Sergio Martins
2eebecb561 wip 2020-04-23 21:39:04 +01:00
Sergio Martins
4de07d29b1 wip 2020-04-23 00:07:09 +01:00
Sergio Martins
5ffac1cd92 wip 2020-04-22 23:07:52 +01:00
Sergio Martins
7198bdf826 wip 2020-04-22 20:31:54 +01:00
Sergio Martins
a355e1b8db wip 2020-04-22 19:52:53 +01:00
Sergio Martins
69159a15a3 wip 2020-04-22 19:29:58 +01:00
Sergio Martins
5bbc9f1d2a wip 2020-04-22 13:52:29 +01:00
Sergio Martins
118cd1b30a wip 2020-04-22 13:42:03 +01:00
Sergio Martins
c96a5c858a wip 2020-04-15 19:41:07 +01:00
Sergio Martins
37ab437f3f Anchor.cpp compiles 2020-04-14 07:44:44 +01:00
Sergio Martins
fec9a5ff4a wip 2020-04-13 21:47:20 +01:00
Sergio Martins
d66e88b484 wip 2020-04-13 21:40:58 +01:00
Sergio Martins
69fd55dfef tests++ 2020-04-13 20:26:12 +01:00
Sergio Martins
86e85d6f35 wip 2020-04-13 18:59:56 +01:00
Sergio Martins
c39805704d Fix and uncomment more tests 2020-04-13 18:21:59 +01:00
Sergio Martins
7821708301 wip 2020-04-12 19:32:39 +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
d315473a54 Fix clear 2020-04-10 12:23:20 +01:00
Sergio Martins
8cd4bf1701 wip 2020-04-10 12:05:49 +01:00
Sergio Martins
0a80629a50 uncomment more tests 2020-04-05 15:29:59 +01:00
Sergio Martins
8c4fbd4012 start uncommenting tests 2020-04-05 15:28:07 +01:00
Sergio Martins
225aa6a098 Add unit-test for DockWidget::raise()
and make it pass on offscreen platform too, as that QPA plugin
fails to keep z-order between order.
2020-03-24 22:36:21 +00:00
Sergio Martins
afb3edfd1d unit-tests++ 2020-03-24 13:33:51 +00:00
Sergio Martins
fc63f843b7 Workaround QTBUG-83030
Fixes a case where the floating window wouldn't disappear.
This is deep in Qt. Got it down to a minimal test-case and reported it.

Probably won't get fixed ever.
2020-03-24 10:58:31 +00:00
Sergio Martins
cc1e1eaa51 Don't flicker when showing a floating dock widget
Create the FloatingWindow directly, instead of creating the DockWidget
then reparenting it
2020-03-07 21:15:44 +00:00
Sergio Martins
eabcdfb945 Add unit-test for affinity 2020-03-01 15:03:29 +00:00
Sergio Martins
63e662323f Added unit-test for Flag_DoubleClickMaximizes 2020-02-27 15:13:01 +00:00
Sergio Martins
6fb0694aab LayoutSaver: Replace saveToDisk() with saveToFile(jsonFilename)
Same for restore.
This is better API as LayoutSaver shouldn't be concerned about
QSettings. It also assumed the user only had a single layout, which
is normally not the case.

And finally, storing escaped json in .ini files is not very elegant.
2020-02-24 15:10:12 +00:00
Sergio Martins
579b222418 Make AddingOption_StartHidden also work for tabs
You can now pass that option to DockWidget::addDockWidgetAsTab().
2020-02-19 16:36:50 +00:00
Sergio Martins
aded290573 Don't save last position if the window was hidden already
Bug was happening when calling close() an closed dock widget, it
would then save the position of the invisible window. Next time it
was open it would appear in a bogus location. 0,0 in my case.
2020-02-06 15:01:58 +00:00
Allen Winter
df692686e7 various - update copyright year 2020-01-07 11:36:56 -05: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