Sergio Martins
72605292b7
Don't show dock/undock icon when dockwidget is not dockable
...
Fixes issue #99
2020-11-13 15:51:26 +00:00
Sergio Martins
392dac5691
Use Qt::WA_PendingMoveEvent instead of Qt::WA_Moved
...
We check if the user provided position before putting a floating
window in a default position. Qt::WA_Moved however has the problem
that it's not cleared, so second time you show a window, it will
have it, even if user didn't set geometry.
Use Qt::WA_PendingMoveEvent instead, which was made for tracking
moves made before the first show.
2020-10-23 17:07:14 +01:00
Sergio Martins
f698b56dad
relax test
...
Seems to happen with 5.15 static. It's benign anyway
2020-10-16 22:02:45 +01:00
Sergio Martins
a146cd81b2
Fix mac tests build
2020-10-16 20:52:22 +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
819725351a
Fix -Wweak-vtables warnings
2020-10-14 14:55:28 +01:00
Allen Winter
77d7cd7d58
buildsystem - namespace CMake options
...
OPTION_DEVELOPER_MODE => KDDockWidgets_DEVELOPER_MODE
OPTION_BUILD_PYTHON_BINDINGS => KDDockWidgets_PYTHON_BINDINGS
PYTHON_BINDINGS_INSTALL_PREFIX =>
KDDockWidgets_PYTHON_BINDINGS_INSTALL_PREFIX
OPTION_QTQUICK => KDDockWidgets_QTQUICK
2020-10-13 12:28:49 -04:00
Sergio Martins
15dc64d550
quick: Fix positioning windows when floating them
...
- Resizing the FloatingWindow wasn't resizing the QQuickView
- QQuickItems were being created as visible, while QWidgets are
created invisible. Fixed this difference in behaviour
2020-10-07 19:43:40 +01:00
Sergio Martins
03b575d16e
quick: Fix MultiSplitter()::mainWindow()
...
Works now for QtQuick
2020-10-06 21:04:25 +01:00
Sergio Martins
128ae2d889
Fix separators not being deleted
...
Bug found with QtQuick but also reproducible with QtWidgets.
Added unit-test for both stacks.
2020-10-05 18:25:33 +01:00
Sergio Martins
6aa4e979dc
Added DockWidgetBase::hasPreviousDockedLocation()
2020-10-05 13:52:36 +01:00
Sergio Martins
2af4f939dd
tests|quick: Fix leak
2020-10-04 20:37:00 +01:00
Sergio Martins
b592d21064
quick: Also run tst_resizeWindow2 for QtQuick
2020-10-04 20:22:43 +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
951aeece6e
quick: Make DockWidgetBase::setWidget() virtual
...
The QtQuick counter-part needs to do some specific things, like
settings anchors.parent: fill on it, and parenting it
2020-10-04 00:01:32 +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
1c98fe04ca
Fix build
2020-10-03 23:11:40 +01:00
Sergio Martins
59a9ab6642
tests: Remove org.kde.desktop from warning blacklist
...
It's now solved by not using the kde QQC2 style. So no need to polute
the warning list
2020-10-03 23:07:49 +01:00
Sergio Martins
7ee5949ae2
tests|quick: Fix memory leaks
2020-10-03 23:07:04 +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
df07133c9d
tests: Silence some QML warnings from KDE theme plugin Kirigami
...
We don't want tests to abort because of that
2020-10-03 22:48:28 +01:00
Sergio Martins
b9e3024720
tst_common now passes for QtQuick
...
Needed a view
2020-10-03 22:10:38 +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