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
7bfac091ae
Rename DockRegistry::nestedwindows() to DockRegistry::floatingWindow
...
which is the naming we use everywhere else
2020-10-10 20:41:42 +01:00
Sergio Martins
60a68817b6
qt_quick: Enable tst_restoreCentralFrame too
...
Removes a warning from FrameQuick. It's benign.
For QtWidgets we also set a -1 tab index to clear
2020-10-10 20:25:46 +01:00
Sergio Martins
a56e6d7fe8
qtquick: Enable tst_simple2
2020-10-10 20:10:43 +01:00
Sergio Martins
1f0b208922
qtquick: Enable tst_resizeWindow too
2020-10-10 12:15:18 +01:00
Sergio Martins
9da147f50e
qtquick: Enable tst_floatingWindowTitleBug too
2020-10-10 11:52:38 +01:00
Sergio Martins
9a88cf3a72
tests: Enable tst_honourUserGeometry for QtQuick
...
It's failing. Will fix.
2020-10-10 11:36:16 +01:00
Sergio Martins
d0255e5310
tests: Use DockWidgetType instead of DockWidget
...
Will be easier to enable QtQuick support
2020-10-10 11:24:32 +01:00
Sergio Martins
2a2fb0a4f2
tests: Enable tst_sizeAfterRedock for QtQuick too
2020-10-10 11:18:40 +01:00
Sergio Martins
b0ad939db8
tests: Enable tst_tabbingWithAffinities for QtQuick
2020-10-10 11:18:40 +01:00
Sergio Martins
b592d21064
quick: Also run tst_resizeWindow2 for QtQuick
2020-10-04 20:22:43 +01:00
Sergio Martins
9a53c36c14
Also honour affinities when dropping into a dock widget as tabbed
...
Fixes #89
2020-10-01 17:55:19 +01:00
Sergio Martins
8fb3802343
tests: Add an xfail for an affinities bug
...
This is for #89 . They shouldn't be allowed to tab
together since they have different affinities
Minor refactoring in drop area so we can call DropArea::drop()
directly without having to move the mouse, as that's not relevant
for this test.
2020-10-01 17:45:53 +01:00
Sergio Martins
6751669249
Fix flaky test on 5.14, it's benign
2020-09-29 23:21:36 +01:00
Sergio Martins
2e432f402f
Also update floating action when removing from a FloatingWindow
...
Fixes #79
2020-09-29 21:05:45 +01:00
Sergio Martins
07791cd901
Fix another case where floating actions weren't updated
...
Relates to issue #79
2020-09-29 20:50:02 +01:00
Sergio Martins
234ca75728
tests: minor: Use QCOMPARE instead of QVERIFY
2020-09-28 22:10:00 +01:00
Allen Winter
423be28afd
various - misspelling--
2020-09-28 16:40:27 -04:00
Sergio Martins
eb7bed9601
Fix build with -Werror
2020-09-28 19:00:40 +01:00
Sergio Martins
fa09521012
Adjust unit-test, according to the latest change
2020-09-28 18:55:55 +01:00
Sergio Martins
bb30f322a3
Fix size when docking a floating window
...
The docked widget would have the size of the window's contents,
we should use the size of the floating window instead.
The difference is just the title bar. When docked, the title bar
belongs do Frame, while when Floating it belongs to FloatingWindow.
When doing the docking calculation the frame's title bar is still hidden
Fixes issue #84
2020-09-28 18:47:46 +01:00
Sergio Martins
c210a523e3
Focus the newly dropped dock widget
...
When we drag a dock widget into a another widget, we should focus it
Fixes issue #77
2020-09-26 17:44:30 +01:00
Sergio Martins
e33151d482
Add a failing test for issue #77
2020-09-26 17:15:46 +01:00
Sergio Martins
4a49dbc6b4
Add a DockWidget::isFloatingChanged() signal
...
For issue #73
2020-09-25 19:25:58 +01:00
Sergio Martins
05c843397b
Add one more test
...
tabbed dock widget aren't floating either
2020-09-25 18:32:06 +01:00
Sergio Martins
e4871eb340
Fix floating action not being triggered in some cases
...
When docking a dock widget into a floating widget, then both
are not "floating" anymore, as there's two of them in the layout
Fixes #79
2020-09-25 18:28:32 +01:00
Sergio Martins
7080712501
Rename the tab's title if its dock widget changes
2020-09-21 16:19:35 +01:00
Sergio Martins
6a46744073
Make Flag_AutoHideSupport public
...
Ready to be tested by the public
2020-09-21 00:19:20 +01:00
Sergio Martins
b5973fcf8c
Fix sidebar test
...
We're not hidding them, they just occupy 0 it seems
2020-09-20 23:50:46 +01:00
Sergio Martins
ac7d06d4fe
When closing overlay, remove it from side bar too
...
Added test.
2020-09-20 23:46:37 +01:00
Sergio Martins
def752632f
tests: fix flaky test on macOS
2020-09-19 00:08:47 +01:00
Sergio Martins
f296048063
tests: Stabilize two tests on XCB
...
Spacings/margins are different. Anyway, that QVERIFY isn't
very important, mostly useless.
2020-09-18 23:44:34 +01:00
Sergio Martins
1c1b816292
Fix tst_maximumSizePolicy with qpa xcb
2020-09-18 23:28:14 +01:00
Sergio Martins
fbd463e18b
tests: debug++
2020-09-18 19:42:26 +01:00
Sergio Martins
9e01363648
tests: debug++
2020-09-18 19:40:37 +01:00
Sergio Martins
67bf7e9775
tst_raise: raise the window before starting
...
needed on macOS
2020-09-18 19:34:09 +01:00
Sergio Martins
d8c2100b24
tests: Set object name for debugging
2020-09-18 19:30:28 +01:00
Sergio Martins
d1a3e39f17
tests: Improve debug message
2020-09-18 19:27:17 +01:00
Sergio Martins
3d5c081333
tests: Debugging a macOS failure
2020-09-18 19:24:49 +01:00
Sergio Martins
d76b27863f
Don't center floating window if user moved it
...
Fixes #75
2020-09-16 16:51:05 +01:00
Sergio Martins
74adb5f021
Fix floating window's title bar not being correct
...
FloatingWindow::hasSingleFrame() was true, but FloatingWindow::frames()
returned 2 of them, since frames() is based on child count and it hadn't
been reparented yet
Not commiting to 1.0 since it touches the layouting engine.
All tests pass and testing showed no side effects though, so should be fine for
1.0 too
Fixes #74
2020-09-15 19:52:48 +01:00
Sergio Martins
85cb289bc4
Also focus when clicking on the current tab
...
Fixes issue #71
2020-09-14 21:08:48 +01:00
Sergio Martins
ee4d720c51
Added test for issue #71
2020-09-14 20:54:35 +01:00
Sergio Martins
869cacc568
Use mouse events for tst_titleBarFocusedWhenTabsChange
...
So we can test clicking on a current tab too.
Also since changing tabs programatically shouldn't change focus,
which I'll fix soon
2020-09-12 00:39:10 +01:00
Sergio Martins
98225ac9a3
Fix DockWidget::isInMainWindow()
...
FloatingWindows are parented to the main window, so we need to stop
the loop once isWindow().
The tests didn't catch this because the floating window in the test
was created before the main window, so it truly didn't have a parent
Fixes #69
2020-09-11 22:33:25 +01:00
Sergio Martins
4bdfc35c8c
Changing tabs should also activate our focus scope
...
Fixes #70
2020-09-09 21:03:00 +01:00
Sergio Martins
b510c2fd5f
Added DockWidget::isInMainWindow()
...
For task #69 .
A signal would be nice too, though.
2020-09-07 15:27:54 +01:00
Sergio Martins
92843b4972
Merge branch '1.0' into master
2020-08-30 14:46:28 +01:00