Sergio Martins
309a90d3a6
tests: Fix a test on windows
2021-01-08 08:28:41 -08:00
Sérgio Martins
946e1e977e
tests: Make sure our own stuff is deleted
...
but don't care about other stuff.
Other QWindows might be deleted delayed. We care more about
DockWidget and MainWindow due to their unique names. They need to
be deleted before the next test starts.
2021-01-08 15:43:04 +00:00
Sergio Martins
dd81e02d94
Fix Qt6 build
2021-01-03 22:17:25 +00:00
Allen Winter
875544a449
Merge branch '1.2'
2021-01-02 09:32:20 -05:00
Allen Winter
a2f4c972a6
update copyright year
2021-01-02 09:27:50 -05:00
Jacob Young
0fe58fd160
Fix filename case so that it will build on a case-sensitive filesystem.
2020-12-28 12:34:03 +00:00
Sergio Martins
01f3042f48
Merge pull request #127 from CE-Programming/fix/case
...
Fix filename case so that it will build on a case-sensitive filesystem.
2020-12-28 12:24:23 +00:00
Sergio Martins
6719dd2b9e
Allow to pass a preferred initial size to MainWindow::addDockWidget()
...
fixes #95
2020-12-28 11:59:09 +00:00
Jacob Young
e4502d4f64
Fix filename case so that it will build on a case-sensitive filesystem.
2020-12-28 03:07:30 -05:00
Sergio Martins
db928a0fca
refactor: Move the DefaultSizingMode enum into InitialSizingOption
...
It's another enum that affects the initial sizing.
No behaviour was change in this commit.
Needed for issue #95
2020-12-28 00:17:13 +00:00
Sergio Martins
5582f37a18
Introduce InitialOption struct
...
addDockWidget() received a AddingOption enumerator. But that
enum isn't enough, as we also want to be able to specify an initial
QSize.
So, instead of adding yet another parameter to addDockWidget(), we
create a struct to old those "initial settings".
Implies a minor source break, but trivial to fix in user code,
just rename the enumerator.
Honouring preferredSize will be a followup.
Needed for issue #95
2020-12-27 20:22:02 +00:00
Sergio Martins
4dd703dcb2
Remove another unneeded qWait
2020-12-24 11:57:18 +00:00
Sergio Martins
e46b5b2edf
tests: Remove a few unneeded qWaits regarding QStateMachine
...
We don't use QStateMachine anymore
2020-12-24 11:55:45 +00:00
Sergio Martins
7febcf2170
qtquick: Uncomment another TabBar that passes now
2020-12-24 11:53:13 +00:00
Sergio Martins
012ed4cf1d
qtquick: Uncomment another test regarding tab widget
2020-12-24 11:43:13 +00:00
Sergio Martins
18283c4d1a
qtquick: Enable another QTabBar test
2020-12-23 23:37:37 +00:00
Sergio Martins
2bb46b1cdf
Uncomment another tab test
2020-12-23 23:11:09 +00:00
Sergio Martins
113263a4a1
qtquick: Enable one more QTabBar test
2020-12-23 22:47:36 +00:00
Sergio Martins
a6ca44cde6
qtquick: double-clicking a tab will detach it now
2020-12-23 20:37:59 +00:00
Sergio Martins
894be60a75
tests: Add pressOn/doubleClickOn that receives a QWindow
...
Easier as we don't need to know the actual QWidget/QQuickItem
receiver. The QWindow will deliver it.
2020-12-23 20:36:50 +00:00
Sergio Martins
244a1bec24
Merge branch '1.2'
2020-12-23 14:34:39 +00:00
Sergio Martins
51d78ba20b
cmake: Allow to not build the fuzzer
...
Slight build improvement locally.
Still build by the CI anyway.
Did the same for the linter.
2020-12-23 13:36:43 +00:00
Sergio Martins
771bf10951
Merge branch '1.2'
2020-12-22 18:48:22 +00:00
Sergio Martins
f8d0ffe7ba
Fix a few clazy warnings
2020-12-22 16:02:55 +00:00
Sergio Martins
10f47a701f
Fix -Wclazy-copyable-polymorphic
2020-12-22 15:38:50 +00:00
Sergio Martins
d3224ed266
Fix -Wclazy-qstring-arg
2020-12-22 15:28:29 +00:00
Sergio Martins
2ccb5391bb
Fix -Wclazy-detaching-temporary
2020-12-22 15:14:28 +00:00
Sergio Martins
add577c46f
qtquick: Fix title not changing when we changed current tab
...
added unit-test too
2020-12-20 16:30:25 +00:00
Sergio Martins
613b1b8524
Allow the user to change the absolute min and max widget sizes.
...
It's not hardcoded anymore
2020-12-19 15:34:37 +00:00
Sergio Martins
5e64463a8c
Remove some Item_p.h/multisplitter includes
...
that's private API for the layouts, don't want them exposed higher
in the stack
2020-12-17 13:48:50 +00:00
Sergio Martins
b6925c928a
Clear sidebars before restoring them
...
If restoring a state without a sidebar, the existing sidebars
should hide
Fixes issue #116
2020-12-17 10:51:16 +00:00
Allen Winter
d39ce8f66e
tests/Testing.cpp - include <QTest>, not <QtTest>
2020-12-16 17:10:07 -05:00
Allen Winter
e41cdb6f78
various - fix misspellings
2020-12-16 16:49:22 -05:00
Sergio Martins
34cb2ae5f0
Restore the SideBars when restoring a layout
...
For issue #116
2020-12-16 18:27:29 +00:00
Sergio Martins
51d8c2ff3e
tests: Group the "Save/restore" tests together
2020-12-16 18:15:06 +00:00
Sergio Martins
b7c36a2ec9
Stabilize a test with 5.9
...
Minor differences in the frame's min-sizes, no point in spending
more time on such old Qt version just so tests pass.
2020-12-16 17:24:33 +00:00
Sergio Martins
94bfc4f2d1
qtquick: Fix build
2020-12-15 23:02:13 +00:00
Sergio Martins
d2da07508a
Replaced an include with a fwd decl
2020-12-15 22:58:10 +00:00
Sergio Martins
ed8a401fe8
Meld kddockwidgets__multisplitter into kddockwidgets lib
...
It's overkill to have it in a separate library.
Simplifies deployment.
Speeds up build, as it was breaking paralellism.
2020-12-15 21:00:41 +00:00
Sergio Martins
742763e6e5
qt6: Remove unneeded Qt5Test find
...
It's already found in the root CMakeLists.txt
2020-12-08 22:56:59 +00:00
Sergio Martins
9f604829dd
qt6: Use AUTORCC instead of qt5_add_resources
...
As this works with both Qt5 and Qt6
2020-12-08 18:11:34 +00:00
Sergio Martins
60331fc654
qtquick: Remove some unneeded QtWidget includes
2020-11-29 17:57:14 +00:00
Sergio Martins
44bd451362
qtquick: stabilize tests with offscreen QPA
2020-11-29 15:17:29 +00:00
Sergio Martins
66f447ad3f
qtquick: Fix crash when hovering over titlebar
...
It would think we were over a drag indicator, because during an instant
the overlay window has 0x0 size but the indicators are still visible.
Fix by only showing the overlay window (visible property) when it has
the correct size
2020-11-28 17:11:46 +00:00
Sergio Martins
40fa4e98f8
qtquick: Fix tests
...
Mouse tracking isn't implemented, so warns
2020-11-27 11:06:47 +00:00
Sergio Martins
6158ebd520
qtquick: Fix our QtQuick QLineEdit clashing with the QWidgets one
...
Some indirect include is making it clash. Cleaner to use a different
name anyway
2020-11-26 21:28:01 +00:00
Sergio Martins
b77430e574
Remove two more unneeded QApplication includes
2020-11-26 19:35:46 +00:00
Sergio Martins
46830713e0
stabilize test on Windows
2020-11-26 18:27:17 +00:00
Sergio Martins
a8965bea91
Fix a unit-test
...
Broke it by mistake
2020-11-26 17:00:10 +00:00
Sergio Martins
bf259c7ffc
qtquick: Fix build on mac
...
Mostly due to -Werror and clang having more warnings
2020-11-26 16:45:12 +00:00