Sergio Martins
87319c69d2
cmake: Swap if/else branches to remove a negation
2022-06-04 12:05:59 +01:00
Sergio Martins
dc36435b35
cmake: Make the frontend discovery shorter
...
The fatal messages aren't needed, replaced by a REQUIRED find_package.
Added missing QtQuickControls find package from one branch, it was
only looking for QtQuick.
2022-06-04 12:03:26 +01:00
Sergio Martins
ea9bf1ef0f
cmake: Remove unneeded negation
2022-06-04 11:48:53 +01:00
Sergio Martins
adbaedef89
cmake: Don't require the user to specify a frontend.
...
It would error-out with "OFF is not a frontend"
Just use find_package instead and enable any compatible frontend.
2022-06-03 19:18:53 +01:00
Sergio Martins
2fafef87df
cmake: Replace ${PROJECT_NAME} with the actual project name
...
Because:
- Doesn't select the whole option name on double-click
- Not easily greppable on the terminal
It make's sense for any reusable cmake code though, we can replace
with ${PROJECT_NAME} again after factoring out any of our non-reusable
cmake code into a reusable module, if any.
2022-06-03 19:14:01 +01:00
Waqar Ahmed
cd88e19648
cmake: Add KDDockWidgets_FRONTENDS option
2022-06-03 16:10:41 +05:00
Sergio Martins
a2f1c1347a
cmake: Explicitly add QtWidgets as dependency of our widgets frontend
2022-06-02 23:33:20 +01:00
Sergio Martins
e74055c1fd
qtquick: Move titlebar invokables to the view
...
As that's what's exposed to QtQuick
2022-06-01 08:53:11 +01:00
Sergio Martins
1acafd8a6c
Remove unneeded MultiSplitterConfig
...
Config.cpp is enough
2022-05-31 23:31:29 +01:00
Sergio Martins
529cedfcbf
Remove the last occurrences of KDDOCKWIDGETS_QTWIDGETS
...
Don't define it in cmake anymore as it's official dead
2022-05-31 22:43:35 +01:00
Sergio Martins
affd1d12ae
tests: Move the last qtwidgets only test to tst_qtwidgets.cpp
...
tst_docks.cpp is now completely rid of the widget ifdefs
2022-05-31 15:14:16 +01:00
Sergio Martins
300bd89728
tests: Port a bunch of KDDOCKWIDGETS_QTWIDGETS defines
...
These already existed in version 1.0, so just use the proper
guard. They won't be made generic at this point
2022-05-31 15:09:36 +01:00
Sergio Martins
61fb31b62a
tests: Move a qtquick only test to tst_qtquick
2022-05-31 15:05:27 +01:00
Sergio Martins
58f1900b06
Port lazy separator resize
2022-05-31 14:43:47 +01:00
Sergio Martins
b6038bd7d7
Port two instances of KDDOCKWIDGETS_QTWIDGETS
...
These are OK, so just rename to the new macro
2022-05-31 14:19:02 +01:00
Sergio Martins
07853bdc4d
Remove the last two remaining KDDOCKWIDGETS_QTQUICK ifdefs
2022-05-31 14:14:31 +01:00
Sergio Martins
6289e92e54
qtquick: Fix resizing root view
...
And uncommented the qtquick test for this, which now passes.
Moved the test to its own qtquick tests file.
2022-05-31 14:06:36 +01:00
Sergio Martins
0a1023aa83
Remove qFatal from ViewWrapper_qtquick::setAttribute()
...
It's ok to be a no-op
2022-05-31 11:33:19 +01:00
Sergio Martins
bc6417c923
Added Window::framePosition()
2022-05-31 11:33:08 +01:00
Sergio Martins
b201737149
Abstract mouse grabbing
...
It's done via the platforms, not via ifdefs anymore
2022-05-31 11:06:25 +01:00
Sergio Martins
c93911016f
tests: remove unused already ported class
2022-05-31 10:37:51 +01:00
Sergio Martins
2e92357adc
Add View::setZOrder()
...
Only relevant to QtQuick.
Removes some ifdefs.
2022-05-31 10:37:14 +01:00
Sergio Martins
8223f462c6
Remove Q_OBJECT from inside comments, so cmake doesn't trigger moc
...
Fixes a warning where moc says "No relevant classes found"
2022-05-31 10:08:55 +01:00
Sergio Martins
b9b8bfc430
Fix Werorr build due to missing override
2022-05-31 10:05:39 +01:00
Sergio Martins
f9df3c5872
windows: Port system move support
2022-05-30 23:42:41 +01:00
Sergio Martins
9881e0488f
windows: Port FloatingWindow's nchittest code
...
Only DragController needs to be ported on Windows now
2022-05-30 23:36:54 +01:00
Sergio Martins
5a4342c0af
windows: Port FloatingWindow::nativeEventFilter()
2022-05-30 23:26:26 +01:00
Sergio Martins
c244d7628d
windows: Port AeroSnap to the new API
2022-05-30 23:19:58 +01:00
Sergio Martins
ab830bb6ee
windows: Port nchittest code
2022-05-30 23:10:21 +01:00
Sergio Martins
827008a96a
windows: Port some code from QWindow to Window
...
Removed the respectives Q_OS_WIN_TODO as they compile now
2022-05-30 22:54:20 +01:00
Sergio Martins
340e65df0b
windows: Remove some Q_OS_WIN_TODO from FloatingWindow
2022-05-30 22:44:52 +01:00
Sergio Martins
83cc6f1b0c
Add Window min/max size getter
2022-05-30 22:27:58 +01:00
Sergio Martins
35a44574a0
windows: Port a few leftovers
2022-05-30 22:07:42 +01:00
Sergio Martins
7a21857ea7
Added Window::property()
2022-05-30 22:05:43 +01:00
Sergio Martins
94afae2729
windows: Reviewed and ported a bunch of Q_OS_WIN_OLD usages
...
Those are fine. Will tackle the difficult ones next.
2022-05-30 22:04:35 +01:00
Sergio Martins
d8e703275f
windows: Replace Q_OS_WIN with Q_OS_WIN_TODO so we can start porting
...
Now it builds. This way I can port each Q_OS_WIN one by one and make
sure everything still builds, without risking breaking Linux/macOS.
2022-05-30 21:55:49 +01:00
Sergio Martins
08dc12e8d7
Move globalGeometry() into View
...
Allows to remove some cruft
2022-05-30 19:50:58 +01:00
Sergio Martins
31d43b6608
qtquick: Port inDisallowedDragView()
2022-05-30 19:45:58 +01:00
Sergio Martins
ab9396af61
Remove unneeded KDDockWidgets::isWindow()
2022-05-30 19:35:20 +01:00
Sergio Martins
30ca6769e4
qtquick: Use the fallback mouse grabber
...
This code was needing porting.
2022-05-30 19:31:30 +01:00
Sergio Martins
22f6f4b2f1
Rename DockWidget::parentChanged() to parentViewChanged() for clarity
...
As this about the visual parent
2022-05-30 19:25:24 +01:00
Sergio Martins
b19f2dfbed
Remove unneeded ifdefs
2022-05-30 19:23:12 +01:00
Sergio Martins
82f3cd9c5f
Remove some unneeded ifdefs from MDIArea.cpp
...
Trying to get rid of them as some need to get ported
2022-05-30 19:20:11 +01:00
Sergio Martins
567308934e
qtquick: Properly comment out a QtWidgets specific code path
...
Fixes crash when hovering with mouse
2022-05-30 19:17:49 +01:00
Sergio Martins
4d1add5221
qtquick: Fix assert that assumed the content item only had 1 child
...
QQuickWindow has other things like popup overlays parented to
the content item too.
2022-05-30 19:14:22 +01:00
Sergio Martins
c619c72094
tests: Introduce an env var to allow to run a subset of tests
...
by frontend
2022-05-30 18:57:59 +01:00
Sergio Martins
e2bb4fb830
qtquick: Register the main window and dock widget instantiators
2022-05-30 18:46:02 +01:00
Sergio Martins
5c0176f35b
qtquick: Implement min/max size for the wrappers
2022-05-30 18:43:48 +01:00
Sergio Martins
095dbe1a7f
qtquick|examples: Initialize the platform
...
Fixes a crash.
There's more (unrelated) crashes though, will look at those next.
2022-05-30 18:39:35 +01:00
Sergio Martins
230317551b
Move installMessageHandler() to Platform.h
...
It's not Qt specific, as other frontends might want to install
their own handler
2022-05-30 18:31:14 +01:00