Sergio Martins
864670b0a1
qtquick: Fix some cases where floating windows didn't have parent
...
Happened because floatingWindow->parentWidget() was null. On QtWidgets
this works because QWidget::parentWidget() will return the transient parent
without a problem.
2020-11-19 17:47:02 +00:00
Sergio Martins
0cf148b389
tests: Check for the existence of QWindow at exit, not QWidget
...
So we're clean for QtQuick too
2020-11-19 16:34:30 +00:00
Sergio Martins
beb2d9e659
qtquick: Add support for non-closable windows
...
fixes tst_preventClose
2020-11-18 18:13:35 +00:00
Sergio Martins
08a1c4e6df
qtquick: Implement focus policy
...
fixes tst_dockWidgetGetsFocusWhenDocked
2020-11-18 12:35:46 +00:00
Sergio Martins
f13de89db5
tests. Fix utils.h draggableFor() for QtQuick
2020-11-17 20:44:04 +00:00
Sergio Martins
09793b3481
tests: Port more tests to QtQuick
...
31 to go
2020-11-06 23:33:02 +00:00
Sergio Martins
473f03360c
tests: Fix Wweak-vtables warnings
2020-10-26 18:59:21 +00:00
Sergio Martins
7419ca806d
tests: Port 2 more tests to QtQuick
2020-10-26 17:32:13 +00:00
Sergio Martins
c4cc6b3e6e
tests: Port more tests to QtQuick
2020-10-25 22:39:10 +00:00
Sergio Martins
7738585d01
tests: Enabled another batch of tests for QtQuick
...
83 of 175 are now building with QtQuick
2020-10-22 20:54:39 +01:00
Sergio Martins
61bc24c6ea
tests: A bunch of drag/mouse functions are not compatible with qtquick
...
In the sense that they build.
2020-10-21 22:43:08 +01:00
Sergio Martins
f70722934c
qtquick: Port more tests
2020-10-19 20:47:09 +01:00
Sergio Martins
b9eb9f10d4
qtquick: Port more tests
2020-10-19 20:26:09 +01:00
Sergio Martins
cb51d0af11
Merge branch '1.1' into master
2020-10-16 20:53:17 +01:00
Sergio Martins
a146cd81b2
Fix mac tests build
2020-10-16 20:52:22 +01:00
Sergio Martins
8dbd6df456
Merge branch '1.1' into master
2020-10-16 20:35:56 +01:00
Sergio Martins
ac6d845c8d
Skip tests on macOS+offscreen if Qt <= 5.15.0
...
There's a bug in Qt qpa only fixed in 5.15.1
2020-10-16 20:35:04 +01:00
Sergio Martins
b5478bcb0d
tests: Enable a bunch of tests for QtQuick
...
only one is failing
2020-10-11 11:44:47 +01:00
Sergio Martins
d403557b9e
tests: Abstract QPushButton somewhat
...
Anything refering QPushButton will simply compile with QtQuick.
2020-10-10 21:07:18 +01:00
Sergio Martins
db9884ea64
qtquick: Enable tst_setFloatingSimple and tst_restoreSimple
2020-10-10 20:53:27 +01:00
Sergio Martins
3cdd5afe7a
quick: Fix ownership of the floating view
...
Not nice to delete it in two places.
2020-10-04 20:16:30 +01:00
Sergio Martins
2ea0d54e6c
quick: Fix floating windows not having the correct window flags
...
Add a unit-test too.
2020-10-03 23:30:13 +01:00
Sergio Martins
721f08e29b
tests: Show the QQuickView and cleanit up
...
Also commit main.qml I forgot
2020-10-03 22:49:27 +01:00
Sergio Martins
0155790b02
tests: add Test::clickOn()
2020-09-12 00:33:34 +01:00
Sergio Martins
961600fe74
qtquick: fix build
...
MainWindow.h is specific to QtWidgets
2020-08-22 19:19:59 +01:00
Sergio Martins
22f2975f3c
tests: createMainWindow() works for qml now too
2020-08-13 00:46:55 +01:00
Sergio Martins
d3323d824a
tests: Make createMainWindow return MainWindowBase
...
Instead of QMainWindow, so it works with qml too
2020-08-13 00:46:55 +01:00
Sergio Martins
1e85b1e7fb
tests: Share EnsureTopLevelsDeleted with qml too
...
So we can start to copy tests to tst_common without hacking them
2020-08-12 22:45:59 +01:00
Sergio Martins
fd56ab7932
qml: Introduce tst_common
...
Will be moving tests that are common to both QtWidgets and QtQuick
2020-08-02 22:16:03 +01:00
Allen Winter
b4f49895c2
clarify: licensing is GPL2 or GPL3 or commercial licensed
...
follow the REUSE specs
2020-07-24 18:16:13 -04:00
Sergio Martins
c4df3600af
tst_docks|fuzzer: Use offscreen QPA by default too
2020-05-10 21:26:52 +01: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
Allen Winter
df692686e7
various - update copyright year
2020-01-07 11:36:56 -05: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
Sergio Martins
daef0c470e
Try to not expose the tab bar
...
It's an implementation detail of FrameWidget. Makes porting
to QtQuick easier
2019-08-08 10:08:38 +01:00
Sergio Martins
fc90d1e506
Move more code into tests/utils.cpp
2019-08-06 20:45:16 +01:00
Sergio Martins
1c7d0c0059
tests: refactor drag() to support dragging the TabWidget directly
2019-08-06 20:22:20 +01:00
Sergio Martins
fb837b7713
Move DockWidget.cpp into widgets/
...
As it's specific to QtWidgets. It's mostly empty now
and inheriting from DockWidgetBase, but we'll move a few stuff.
2019-08-05 23:35:44 +01:00
Sergio Martins
0243dd4ed4
Add a more complex test
2019-07-23 16:59:36 +01:00
Sergio Martins
ddb772d54f
Fix clazy build
2019-07-22 09:34:15 +01:00
Sergio Martins
bb1a933137
Transform floating dock widgets into FloatingWindow
...
instead of waiting for the user to drag a window over it.
This makes it have better z-order, as the FloatingWindow is parented.
2019-07-20 22:15:24 +01:00
Sergio Martins
8427cd7f5f
tests: Don't spam so many qpa warnings
...
We don't care about these warnings so don't print them
2019-07-19 18:16:47 +01:00
Sergio Martins
2b45aab88d
Propagate closing events
...
FloatingWindow now asks Frame if it should close
Frame asks its DockWidgets
DockWidget asks its widget
2019-07-16 22:36:08 +01:00
Sergio Martins
0abc315584
Share some tests code in utils.cpp
2019-07-16 22:13:22 +01:00
Sergio Martins
cff487099d
Add missing override
2019-07-16 21:39:51 +01:00
Sergio Martins
3c4dba77bf
Add tests/utils.h
...
tst_docks.cpp is becoming too big
2019-07-16 21:38:45 +01:00