Sergio Martins
a237eae508
qtuick: Add a customtitlebar example stub
...
Not custom yet.
2020-12-02 15:48:51 +00:00
Sergio Martins
243396f22b
qtquick: Move the example into a sub-directory
...
We'll have other qtquick examples
2020-12-02 14:52:10 +00:00
Sergio Martins
f240bf5d40
Disable Aero-snap for QtQuick, for now
2020-12-01 20:33:52 +00:00
Sergio Martins
785db1b50c
qtquick: Fix detaching windows not working smoothly
...
Use the global event filter, as grabing isn't reliable in QtQuick.
Either not the same item is getting the mouse moves and release, or
it's because QtQuick internally is also setting/unsetting grabbers,
as seen in the source code
2020-12-01 20:14:46 +00:00
Sergio Martins
b6a7048a4f
Fwd declare QWidget, no need to include in the header
2020-12-01 19:48:41 +00:00
Sergio Martins
52bff59024
Remove duplicated logic regarding mouse events
2020-11-30 23:14:00 +00:00
Sergio Martins
bba0195196
Move "mouseEvent()" function to Utils_p.h
...
So it can be reused
2020-11-30 23:00:30 +00:00
Sergio Martins
41fdb9c7df
qtquick: Fix non-developer build
2020-11-30 18:37:39 +00:00
Sergio Martins
c1c1da25a8
Fix build with vs2013
2020-11-30 14:11:21 +00:00
Sergio Martins
b4e7b97646
examples: Fix non-developer build
2020-11-30 12:25:29 +00:00
Sergio Martins
2c687fe469
qtquick: Implement the rubber band
...
When hovering a drop indicator we now see the blue rubberband
2020-11-29 22:31:11 +00:00
Sergio Martins
10e0402afa
Fix build
2020-11-29 19:51:37 +00:00
Sergio Martins
ebb1179167
fix namespace
2020-11-29 19:41:30 +00:00
Sergio Martins
15c196d865
qtquick: Move Rubberband to its own file
2020-11-29 19:23:10 +00:00
Sergio Martins
e897ce6e8e
qtquick: Add a replacement for QAction
...
So we don't depend on QtWidgets lib
2020-11-29 18:44:00 +00:00
Sergio Martins
83d9db1b64
qtquick: multisplitter lib no longer depends on QtWidgets
...
Added a QSizePolicy replacement.
KDDW for QtQuick still needs to link to QtWidgets, but it's a
step forward
2020-11-29 18:08:49 +00:00
Sergio Martins
60331fc654
qtquick: Remove some unneeded QtWidget includes
2020-11-29 17:57:14 +00:00
Sergio Martins
e8f16dd172
qtquick: Don't build ObjectViewer
2020-11-29 17:50:51 +00:00
Sergio Martins
44bd451362
qtquick: stabilize tests with offscreen QPA
2020-11-29 15:17:29 +00:00
Sergio Martins
1d2a791dfc
qtquick: Fix DND operation never ending
...
When double-clicking a title bar we're getting: Press, Release,
Press and never the Release. We get the MouseDblClickEvent instead,
so handle that
2020-11-29 14:40:03 +00:00
Sergio Martins
a4ba45b423
qtquick: Fix flickering the first time we drag over
2020-11-28 19:27:18 +00:00
Sergio Martins
12576970c6
qtquick: Fix dragged window being behind in Z order
...
For QtWidgets, when we raise something that's not a top-level
it won't raise. So do the same thing for QtQuick
2020-11-28 18:28:43 +00:00
Sergio Martins
e0ee7d14b0
qtquick: Remove warning about we not implementing keyboard ungrab
...
I don't see it in QQuickItem API, so we also don't grab it to
begin with
2020-11-28 17:53:39 +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
75db599142
tests: Make DropArea::hover() return the chosen drop location
...
Just for tests.
2020-11-28 16:47:19 +00:00
Sergio Martins
a5c65ae039
Introduce NullIndicators and a Config option for it
...
Mostly for debugging purposes, but also useful if anyone doesn't
want to display indicators
2020-11-28 14:11:39 +00:00
Sergio Martins
5c055e0b8d
examples: Add a flag to disable aero-snap
...
For development/debugging purposes only
2020-11-28 00:39:30 +00:00
Sergio Martins
090483f04e
qtquick: Add some flags to the example
...
Mostly for debugging at this point
2020-11-28 00:18:41 +00:00
Sergio Martins
953219f6f3
qtquick: Minor refactoring
...
Removed some hardcoded QLineEdit casts, that code is now generic.
2020-11-27 18:47:03 +00:00
Sergio Martins
8356bb0c3c
Introduce KDDockWidgets::widgetAt()
...
Only repro for QtWidgets for now, but already useful to remove some
QApplication includes
2020-11-27 18:29:46 +00:00
Sergio Martins
758548f7a2
qtquick: Only Windows needs Angle
2020-11-27 17:11:45 +00:00
Sergio Martins
2aa16eb6d9
examples: comment out the old multisplitter example
...
It's not for end users. Might even delete it
2020-11-27 17:07:44 +00:00
Sergio Martins
9d6cef24c1
qtquick: Use Angle on Windows
...
It's aero-snap friendly. Otherwise shows black artifacts.
We can however use normal GL and use FramelessWindowhint instead
2020-11-27 16:46:21 +00:00
Sergio Martins
52999d4cc9
qtquick: Don't process native events when being deleted
2020-11-27 15:03:55 +00:00
Sergio Martins
bc2fff2c04
qtquick: Window resizing works on Linux/mac now
2020-11-27 13:59:27 +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
a07f63a2c7
qtquick: Fix build on Windows
2020-11-26 23:30:55 +00:00
Sergio Martins
39c9a4da9b
qtquick: Enable native event handling for the floating windows
...
Same as done with QtWidgets, now hopefully we have native window
resize
2020-11-26 23:26:15 +00:00
Sergio Martins
e0aa547393
qtquick: Start using the WidgetResizeHandler
...
It's no longer commented out in FloatingWindow.
Doesn't do much for QtQuick, but at least we don't have different
code paths
Making it work is next.
2020-11-26 23:13:46 +00:00
Sergio Martins
08eab8882f
qtquick: Call FloatingWindow::setupWindow() at the correct time
...
We need a QWindow. While that's done very early, and automatically
for QtWidgets, for QtQuick it's done later, by us, manually
2020-11-26 22:52:23 +00:00
Sergio Martins
04723ac3a9
Minor refactoring, moved code into a function
2020-11-26 22:46:14 +00:00
Sergio Martins
c25043fa00
qtquick: Enable more QtWidget paths that compile fine
...
Just needed a dummy create() function
2020-11-26 22:28:57 +00:00
Sergio Martins
5372920cd0
qtquick: Port NCHITTESTEventFilter
2020-11-26 21:53:48 +00:00
Sergio Martins
28ae4c3b8c
Add helper to get FloatingWindow by its WId
2020-11-26 21:42:45 +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
fad81d595a
qtquick: Remove some dependencies to QApplication
2020-11-26 19:31:32 +00:00
Sergio Martins
0980a7f601
qtquick: Port qtTopLevelForHWND() to Windows
...
Deals in QWindow instead of QWidget
2020-11-26 18:54:58 +00:00
Sergio Martins
46830713e0
stabilize test on Windows
2020-11-26 18:27:17 +00:00
Sergio Martins
cd796db0ff
Add helper topLevelForHandle()
2020-11-26 17:53:28 +00:00