Sergio Martins
3859e4b277
Added Wayland to the README
2020-10-17 12:18:05 +01:00
Sergio Martins
26253b65c7
wayland: Silence warning about qpa not supporting activating
...
"qt.qpa.wayland: Wayland does not support QWindow::requestActivate()"
2020-10-17 12:13:58 +01:00
Sergio Martins
424453ab57
Double clicking on a tab will make it float
...
Also really required for Wayland, where we don't another way to
float a single tab, as the float button affects all of them.
2020-10-17 12:09:47 +01:00
Sergio Martins
d7de0ebd20
Updated ChangeLog
...
- Added wayland for 1.2, it's done. Might need more polishing.
- Removed 1.0.1, let's release 1.1 instead
- Moved QtQuick to 1.3. The december target is still there, but I want
to release 1.2 sooner, since the wayland support is done.
2020-10-17 11:44:45 +01:00
Sergio Martins
bf1c5140cd
Wayland: Fix another missing mapToGlobal
...
Hovering indicators was fine, but dropping was off by a few pixels
vertically due to the menu bar
2020-10-17 11:41:19 +01:00
Sergio Martins
fb7a35db5b
Wayland: Fix indicator hover being off
...
Drag events are in local coords, while DropArea wants it in
global
2020-10-17 11:05:56 +01:00
Sergio Martins
5872c2fbe3
Wayland: Support classical indicators too
...
The Indicator Window is top-level, but on Wayland that can't do,
as we have no way to position it. So parent it. The indicators
are now under the window being dragged, but that's no so bad, as it's
smi-transparent, so you still see the indicator.
2020-10-17 11:02:49 +01:00
Sergio Martins
ba04c70d5a
Minor code re-ordering
2020-10-17 10:30:26 +01:00
Sergio Martins
de1e2d301f
wayland: Support affinities too
2020-10-17 10:27:43 +01:00
Sergio Martins
b67bdf779e
Don't dereference windowBeingDragged->floatingWindow()
...
Add a level of indirection instead, and support for the wayland case
2020-10-16 23:06:30 +01:00
Sergio Martins
78a3221395
Merge branch '1.1' into master
2020-10-16 22:05: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
4ed18fdf1d
Introduce Config::setTabbingAllowedFunc(<lambda>)
...
This gives a lot of power to the user to disallow tabbing two dock
widgets, while still allowing them to be docked side by side. As
this can't be achieved with affinities.
Instead of adding API which might not be enough soon, just allow
the user to pass a lambda and implement his very custom requirement.
Fixes #91
2020-10-16 21:56:33 +01:00
Sergio Martins
6e05f13c77
Added FloatingWindow::dockWidgets()
2020-10-16 21:48:47 +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
cfc9d1abcd
cmake: Fix indentation
2020-10-16 19:43:50 +01:00
Sergio Martins
a66748f6ca
relax test
...
Seems to happen with 5.15 static. It's benign anyway
2020-10-16 17:10:40 +01:00
Sergio Martins
e5f46ead3b
qtquick: Fix build
2020-10-16 17:08:36 +01:00
Sergio Martins
171023558e
Introduce WindowBeingDraggedWayland
...
This is just a cleanup. Instead of having WindowBeingDragged
having both code paths, let's keep the non-wayland platforms code
small and clean.
2020-10-16 17:08:36 +01:00
Allen Winter
059a424b88
Merge branch '1.1'
2020-10-16 08:39:26 -04:00
Sergio Martins
307b22deaf
Wayland: Also allow to drag by tab widget
...
For when we don't have title bar
2020-10-16 13:30:20 +01:00
Sergio Martins
e405688f67
Fixing build with msvc 2013
...
error C2876: 'QMimeData' : not all overloads are accessible
2020-10-16 13:16:13 +01:00
Sergio Martins
68554119f4
Fix -Werror build on mac
2020-10-16 11:46:02 +01:00
Sergio Martins
86a4a740ef
wayland: dropping a single tab or frame now works too
2020-10-16 11:33:09 +01:00
Sergio Martins
0a004b83ca
Add WindowBeingDragged::draggable() getter
2020-10-16 11:16:49 +01:00
Sergio Martins
4fa47403c5
Make DragArea::drop() deal in WindowBeingDragged()
...
Preparing for wayland case.
2020-10-16 10:49:42 +01:00
Sergio Martins
9e418ced53
wayland: Finish WindowBeingDragged::maxSize() and minSize
...
Supports now single dock widgets or single frames
2020-10-16 10:40:34 +01:00
Sergio Martins
bc04863439
Wayland: Dragging a tab or a nested dock widget now shows pixmap
...
TODO: Supporting a drop for those two cases
2020-10-16 10:33:01 +01:00
Allen Winter
77f259a435
README.md - contact info
2020-10-15 16:06:26 -04:00
Sergio Martins
16bcace663
Add some transparency to the QDrag pixmap
...
Looks better
2020-10-15 19:15:40 +01:00
Sergio Martins
52fddaa1cd
wayland: Set a pixmap while DND
...
Since our source window isn't moving, let's at least show a copy
of it on the pixmap
A bunch of tearing going on kwin_wayland/nvidia though.
Weston/nvidia is fine.
Haven't tried kwin_wayland/Intel yet
2020-10-15 19:11:12 +01:00
Sergio Martins
f3d7400c15
wayland: End the drag properly when user cancels the drag
2020-10-15 19:02:46 +01:00
Allen Winter
7ebc3f3533
src/DockWidgetBase.h - fix compile after merge from master
2020-10-15 12:43:29 -04:00
Renato Araujo Oliveira Filho
0ee94b425e
Fixed python bindings generation
2020-10-15 12:38:32 -04:00
Sergio Martins
d44a173945
Wayland: Really end the drag after dropping
...
Fixes a crash on shutdown
2020-10-15 17:27:12 +01:00
Sergio Martins
ac001d6f32
wayland: Don't allow to drop onto itself
...
It was showing the drop indicators in the window being dragged
2020-10-15 16:50:46 +01:00
Sergio Martins
e3de2df69c
wayland: Add initial drag and drop support
...
You can drag a floating window and drop it somewhere
- Only works with segmented indicator style. Classical indicators
require us being able to positioning an overlay, which wayland
doesn't allow us to.
- Detaching inner tabs and dock widgets not implemented yet.
- polishing needed
2020-10-15 16:50:46 +01:00
Sergio Martins
39d3c90b2f
Minor variable rename for readability
2020-10-15 16:50:46 +01:00
Sergio Martins
bca21defa5
wayland: Don't grab mouse or set window opacity
...
Not supported by the QPA and not needed for wayland anyway
2020-10-15 16:50:46 +01:00
Sergio Martins
dd3116ae7f
Minor: remove const, need to pass it somewhere else
2020-10-15 16:50:46 +01:00
Allen Winter
49b3765eae
Merge branch '1.1'
2020-10-15 10:53:41 -04:00
Allen Winter
1f5dd35bec
Merge pull request #93 from KDAB/fix-python-binding
...
Fixed python bindings generation
2020-10-15 10:52:44 -04:00
Renato Araujo Oliveira Filho
6fce8e6161
Fixed python bindings generation
2020-10-15 09:55:32 -03:00
Allen Winter
e57b46979d
buildsystem - fix installation path for Python bindings
2020-10-14 16:27:18 -04:00
Allen Winter
683b67abb0
buildsystem - install libs with symlinks for the major vers
2020-10-14 15:59:53 -04:00
Sergio Martins
6479bcabfb
Make DropArea::drop() receive WindowBeingDragged instead
...
In prep for wayland support
2020-10-14 20:42:51 +01:00
Sergio Martins
a8c9735652
wayland: Add needed API to WindowBeingDragged
...
So it can act as a substitute for FloatingWindow, which we don't
always have during a drag
2020-10-14 20:34:55 +01:00