Commit Graph

3876 Commits

Author SHA1 Message Date
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
Sergio Martins
a48ce5ccff tests: Don't fail due to benign warnings 2022-05-30 18:07:14 +01:00
Sergio Martins
10cf965be2 Fix inifinite loop in ViewWrapper_qtquick::maximumSize 2022-05-30 17:59:12 +01:00
Waqar Ahmed
39c058cd29 Fix messageHandler installation for Qt backends 2022-05-30 20:28:44 +05:00
Waqar Ahmed
2815a5e84a Fix build errors 2022-05-30 17:11:05 +05:00
Sergio Martins
08dc4540f8 qtquick: Make customtitlebar example compile 2022-05-30 12:20:44 +01:00
Sergio Martins
bcb0668ace qtquick: Make mdi example compile 2022-05-30 12:16:11 +01:00
Sergio Martins
0b36b7c7e8 qtquick: Port the example 2022-05-30 12:01:04 +01:00
Sergio Martins
2421e607a9 Users now instantiate DockWidget view instead of controller
The controllers are private and not intentend for the public.
2022-05-30 11:45:43 +01:00
Sergio Martins
403f0626b4 tests: Comment the QtQuick examples one by one
so we can uncomment them one by one too as we port them
2022-05-30 10:15:16 +01:00
Sergio Martins
1bb0b13d77 qtquick: Make MainWindowInstantiator compile 2022-05-29 23:27:27 +01:00
Sergio Martins
1787a69edb qtquick: Make DockWidgetInstantiator compile 2022-05-29 23:16:56 +01:00
Sergio Martins
04b9590d59 cmake: Compile tst_qtwidgets only if QtWidgets frontend is built
The QtQuick frontend is now buildable withotu the QtWidgets one.
2022-05-29 22:14:45 +01:00
Sergio Martins
c36832d71c Port tst_viewguard away from QtWidgets 2022-05-29 22:07:38 +01:00
Sergio Martins
eff711b9ca Port MainWindowMDI to the new architecture
Has a qtquick implementation now.
2022-05-29 21:57:08 +01:00
Sergio Martins
340f618060 Split MainWindowMDI in two, so it can be reused by QtQuick 2022-05-29 21:09:24 +01:00
Sergio Martins
58c246cedc Remove unneeded qtquick ifdef 2022-05-29 20:55:42 +01:00
Sergio Martins
e27f142ec8 Fix KDDockWidgets::initFrontend() not initializing qtquick
As a drive-by add the required ifdefs
2022-05-29 20:27:50 +01:00
Sergio Martins
6d760cb5e1 Rename Some _p.h headers to .h
Easier for vscode to toggle between header the source
2022-05-29 20:24:11 +01:00
Sergio Martins
85f02d8ceb DockRegistry doesn't depend on QtWidgets anymore 2022-05-29 20:14:25 +01:00
Sergio Martins
fe87380d83 Layout.cpp no longer depends on QtWidgets 2022-05-29 20:09:26 +01:00
Sergio Martins
20c41fa3b1 qtquick: Implement Platform_qtquick::tests_createNonClosableView() 2022-05-29 19:54:37 +01:00