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
Sergio Martins
29da5f4a8a
qtquick: Fix another include
...
Fixes the multisplitter build on Windows, which has a more picky
linker
2020-11-26 17:18:55 +00:00
Sergio Martins
315bdc71e5
qtquick: Include the correct include
...
Not the widget one
2020-11-26 17:17:18 +00:00
Sergio Martins
a8965bea91
Fix a unit-test
...
Broke it by mistake
2020-11-26 17:00:10 +00:00
Sergio Martins
bf259c7ffc
qtquick: Fix build on mac
...
Mostly due to -Werror and clang having more warnings
2020-11-26 16:45:12 +00:00
Sergio Martins
8a990451d7
Fix casting -1 to WId on mac
2020-11-26 15:59:32 +00:00
Sergio Martins
974bdbd637
Fix a -Wweak-vtable warning
2020-11-26 15:55:52 +00:00
Sergio Martins
cb9d77cd18
Fix more -Woverloaded-virtual
2020-11-26 15:17:33 +00:00
Sergio Martins
af10efa587
Fix more -Woverloaded-virtual
2020-11-26 15:15:37 +00:00
Sergio Martins
a0fb47af58
Fix -Woverloaded-virtual
2020-11-26 14:52:04 +00:00
Sergio Martins
598fbdc51b
qtquick: Fix build on mac
...
RubberBand was being compiled twice. We shouldn't compile the
_widget* multisplitter files when using QtQuick.
Also implies tst_multisplitter shouldn't be run when compiling
for QtQuick.
2020-11-26 14:29:17 +00:00
Sergio Martins
81c3f3f0c6
Fix a -Wweak-vtables warning
2020-11-26 13:28:15 +00:00
Sergio Martins
b9962b3df0
qtquick: Make the QWinWidget case specific to QtWidgets
...
With QtQuick we don't have QWinWidget
2020-11-26 13:23:06 +00:00
Sergio Martins
a71386e62a
Fix using qAbs(bool)
...
detected by msvc
2020-11-26 12:59:51 +00:00
Sergio Martins
812ce1c08b
qtquick: Fix floating dock #3 in the example
...
It would go to its previous place (0,0), so don't show it at
start.
Added a unit-test as thought it was a bug, but code is correct.
2020-11-26 12:31:50 +00:00