Commit Graph

4018 Commits

Author SHA1 Message Date
Sergio Martins
a4d337e891 Fully qualify header paths when including controllers
so this still works when private headers are installed
2022-06-13 23:24:43 +01:00
Sergio Martins
44476789c2 Add fwd headers for the controllers 2022-06-13 23:01:57 +01:00
Sergio Martins
458ae05564 Move qtquick qrc into qtquick folder/
as it's unrelated to the other frontends
2022-06-13 22:51:22 +01:00
Sergio Martins
169d2fe8e2 qtquick: Fix custom titlebar example
qrc path was wrong
2022-06-13 22:45:34 +01:00
Sergio Martins
4615936f9e Fix minor typo 2022-06-13 22:42:28 +01:00
Sergio Martins
ebaf0d170f examples: Rename minimal_mdi to mdi
There's not much functionality to show, so no point in saying it's
minimal
2022-06-13 22:39:31 +01:00
Sergio Martins
040fe14907 examples: Uncomment code that sets separator thickness
It works now
2022-06-13 22:32:55 +01:00
Sergio Martins
59013303ac examples: Port MyViewFactory to new design
It was commented out still
2022-06-13 22:31:13 +01:00
Sergio Martins
4dab634abf docs++ 2022-06-13 20:44:59 +01:00
Sergio Martins
32b6c3acbe Simplify ViewFactory by making it receive View parents instead of Controllers
Users don't need to worry about such details, like casting to QWidget.
2022-06-13 20:35:57 +01:00
Sergio Martins
91398d5fab Minor: Make method protected instead of private 2022-06-13 20:16:11 +01:00
Sergio Martins
b596aaf1f4 Add the qtwidget and qtquick fwd headers to include path 2022-06-13 19:48:37 +01:00
Sergio Martins
ec56120290 Don't include controller headers in view headers
view headers will be installed, so shouldn't leak impl details
much. Controllers are more low level things that the user won't use
much
2022-06-13 19:44:47 +01:00
Sergio Martins
8ba160b0f6 Add forward headers for the views 2022-06-13 19:16:51 +01:00
Sergio Martins
6a6854ed84 example: Rename MyFrameworkWidgetFactory to MyViewFactory 2022-06-13 19:00:58 +01:00
Sergio Martins
8b49eabe95 Bump KDBindings 2022-06-13 18:45:05 +01:00
Waqar Ahmed
a17f6468cd use 0 as default serializationVersion 2022-06-13 14:50:43 +05:00
Waqar Ahmed
c62b1a5a9b Dont use nlohmann::operator[], use value() instead 2022-06-13 14:47:30 +05:00
Sergio Martins
2e4c01f604 Move some m2 TODOs to m3, as they're not related to QtQuick stabilization 2022-06-13 02:46:31 +01:00
Sergio Martins
3ab3076263 Fix some low hanging TODOs 2022-06-13 02:37:03 +01:00
Sergio Martins
efc42e8d3f Move updating size constraints from FloatingWindow view to controller 2022-06-13 02:28:56 +01:00
Sergio Martins
e49ecc880e Replace View::onLayoutRequest() with a signal
Which moves more logic into the controllers.
2022-06-13 02:12:12 +01:00
Sergio Martins
cfd4e61a3b Remove View::setLayoutItem()
Because it's specific to Frame
2022-06-13 01:49:06 +01:00
Sergio Martins
b56cf151fe TitleBar_qtwidgets: Header cleanup 2022-06-12 16:34:35 +01:00
Sergio Martins
87414585ea SideBar_qtwidgets: Cleanups
Include cleanups and making things protected/private.
2022-06-12 16:27:04 +01:00
Sergio Martins
3b814866e2 Remove unneeded isVertical() from Sidebar view 2022-06-12 16:21:11 +01:00
Sergio Martins
55620a5d10 TODO cleanup
Removed stale TODOs and promoted some to TODOm2 , as they should
be tackled next
2022-06-12 16:07:29 +01:00
Sergio Martins
5a99c8390a qtquick: Allow the user to pass a different QQmlEngine to DockWidget
Like was the case in v1.x
2022-06-12 15:51:00 +01:00
Sergio Martins
1f7ac6897c qtquick: Rename setWidget to setGuestView 2022-06-12 15:33:56 +01:00
Sergio Martins
24f1f6be33 qtquick: Remove unnneeded connect from frame view
It's already done in the controller
2022-06-12 15:29:21 +01:00
Sergio Martins
6c589f0500 Postpone some m2 TODOs to m3
m2 will focus on QtQuick being usable
2022-06-12 15:25:35 +01:00
Sergio Martins
767bbcb251 Make layout linter work against any frontend 2022-06-12 15:16:30 +01:00
Sergio Martins
c12da6b6d5 cmake: Don't link against QTTest in release builds 2022-06-12 14:51:57 +01:00
Sergio Martins
ab2b481a80 cmake: QtQuick frontend no longer needs to link against QtWidgets 2022-06-12 14:43:17 +01:00
Sergio Martins
fb844bc989 Don't use QAction directly
In prepartion for qtquick frontend not needing QtWidgets
2022-06-11 18:48:37 +01:00
Sergio Martins
098a368c79 qtquick: Use QGuiApplication for tests, not QApplication 2022-06-11 18:29:12 +01:00
Sergio Martins
1acbf48786 Don't depend directly on QSizePolicy, as that's QtWidgets
Introduce our own enum. Soon our qtquick frontend won't link
against QtWidgets
2022-06-11 18:22:38 +01:00
Sergio Martins
e120f6f318 tests: Fix windows tests regarding frame pos vs client pos confusion
It's also more readable now.
Might break on linux though, will need to investigate further if that's
the case. In many cases it's just a timing issue, as some platforms are
"more async" than others to add frame
2022-06-11 16:17:10 +01:00
Sergio Martins
a7b6dd5f24 Port the rest of win32 specific code 2022-06-11 15:50:03 +01:00
Sergio Martins
5cd46d572e Remove a Q_OS_WIN_TODO, nothing to port there 2022-06-11 15:24:32 +01:00
Sergio Martins
0031f1bcfd Release build now builds 2022-06-11 15:24:19 +01:00
Sergio Martins
42998971cc Make DockWidget's d ptr public
This gives more power to users, at their own risk ofc.
2022-06-11 15:22:34 +01:00
Sergio Martins
35f8e3c3f6 cmake: Disable unity build from release builds
It makes it hard to catch missing includes
2022-06-11 15:14:00 +01:00
Sergio Martins
98a8e67f9b Build fixes for release builds 2022-06-11 15:08:25 +01:00
Sergio Martins
6c53777f1b Fix build on Windows 2022-06-11 14:31:20 +01:00
Sergio Martins
02a8da4fb8 tests: Remove whitelisted warning
It doesn't happen anymore
2022-06-11 14:10:00 +01:00
Sergio Martins
29fd6f4a40 qtquick: Fix binding loops
This also restores behaviour with v1.x regarding setParent
2022-06-11 14:03:41 +01:00
Sergio Martins
0f6be75620 vscode: Add a qtquick launcher to the workspace too 2022-06-11 13:25:52 +01:00
Sergio Martins
78025d1e34 Fix name of examples in README and such, since they got renamed 2022-06-11 13:20:26 +01:00
Sergio Martins
b75a10b9eb examples: Normalize names of examples 2022-06-11 13:06:41 +01:00