Sergio Martins
|
49b2a10cc6
|
Fix QtQuick build on Windows
|
2022-06-18 19:13:45 +01:00 |
|
Sergio Martins
|
60c6ffaabb
|
Rename MDIArea class to MDIArea_qtwidgets
To match the filename now
|
2022-06-18 18:15:19 +01:00 |
|
Sergio Martins
|
408fe315ed
|
Rename MDIArea.h to views/MDIArea_qtwidgets.h
As done for all other views. This one was missing
|
2022-06-18 17:51:19 +01:00 |
|
Sergio Martins
|
942d086905
|
Fix linking on Qt/macOS
|
2022-06-18 13:36:07 +01:00 |
|
Sergio Martins
|
8dbd87ae0d
|
cmake: Only add qtquick/ to include path if it's being built
And vice-versa for qtwidgets
|
2022-06-18 13:32:36 +01:00 |
|
Sergio Martins
|
f04e813af3
|
Fix Platform.h not being installed
|
2022-06-18 13:17:58 +01:00 |
|
Sergio Martins
|
a0accacb5d
|
Rename views/MainWindowMDI.h -> ../views/MainWindowMDIViewInterface.h
This one was missing
|
2022-06-18 13:14:18 +01:00 |
|
Sergio Martins
|
1b0bae7780
|
Don't include Window.h in DockRegistry.h
As the latter is installed while the former is not.
Window.h depends on KDBindings so would rather not require it publically.
|
2022-06-18 13:06:29 +01:00 |
|
Sergio Martins
|
4c4dcf4423
|
Move KDBindings usage from Platform.h to Platform_p.h.
So user doesn't need to install it
|
2022-06-18 12:28:54 +01:00 |
|
Sergio Martins
|
7017ce8396
|
Move KDBindings usage from View.h to View_p.h
KDBindings is implementation detail. User won't have to install
it, at this point.
|
2022-06-18 12:15:42 +01:00 |
|
Sergio Martins
|
9f1a9df621
|
cmake: Install view interface headers too
|
2022-06-18 11:48:29 +01:00 |
|
Sergio Martins
|
d7b57d460f
|
cmake: Don't install Window*h and Item_p.h
They are unneeded, and expose kdbindings
|
2022-06-18 11:46:46 +01:00 |
|
Sergio Martins
|
6be5339fd3
|
Add d-ptr to DockRegistry, hides usage of kdbindings
|
2022-06-18 11:21:53 +01:00 |
|
Sergio Martins
|
82d933ad34
|
Remove unused include
|
2022-06-18 11:16:41 +01:00 |
|
Sergio Martins
|
cae9627e06
|
Add a d-ptr to FloatingWindow_qtwidgets
So we don't expose kdbindings in the API
|
2022-06-18 11:14:15 +01:00 |
|
Sergio Martins
|
5a6ceade6c
|
cmake: Fix QtQuick not being found when using installed kddw
|
2022-06-18 10:39:50 +01:00 |
|
Sergio Martins
|
d5471aceb6
|
cmake: Install headers
|
2022-06-18 10:25:52 +01:00 |
|
Sergio Martins
|
e63a34a4a5
|
Rename DockRegistry_p.h -> DockRegistry.h
People use it.
|
2022-06-18 09:28:03 +01:00 |
|
Sergio Martins
|
8be6183543
|
Include cleanup
Removed unneeded controllers/ includes from headers
|
2022-06-18 09:15:30 +01:00 |
|
Sergio Martins
|
1ee5d21d4a
|
examples: Remove controller usage, use views instead
Controllers is low level API
|
2022-06-18 08:36:09 +01:00 |
|
Sergio Martins
|
26ba2199cb
|
Moved 2 more DockWidget enums to KDDockWidget.h
So users don't have to include controllers/DockWidget.h
|
2022-06-18 08:16:16 +01:00 |
|
Sergio Martins
|
7ae49ee330
|
qtquick: Move last DockWidget Q_PROPERTY from controller to view
|
2022-06-18 00:34:26 +01:00 |
|
Sergio Martins
|
a609f2233b
|
Move DockWidgetOption enum to KDDockWidget.h
controllers/DockWidget.h is not something users will include directly
|
2022-06-18 00:27:58 +01:00 |
|
Sergio Martins
|
d3de373995
|
Move "widget" Q_PROPERTY to the qtquick view
|
2022-06-17 21:54:30 +01:00 |
|
Sergio Martins
|
a5f364da03
|
qtquick: Fix qml accessing the frame controller
It should access the view instead, as the controller will cease to
be QObject
|
2022-06-17 20:12:44 +01:00 |
|
Sergio Martins
|
499c9412bb
|
Don't make all DropArea views all DropArea::onResized()
Do it in the controller once, instead of repeating it
|
2022-06-17 20:06:51 +01:00 |
|
Sergio Martins
|
c48a100f73
|
Remove unused titleBar() method
|
2022-06-17 19:58:22 +01:00 |
|
Sergio Martins
|
7e7c9d7300
|
Rename the remaining view interfaces to *ViewInterface
|
2022-06-17 18:56:34 +01:00 |
|
Sergio Martins
|
0600c42775
|
Move common code info FrameViewInterface
So it's not duplicated between QtWidgets and QtQuick
|
2022-06-17 18:19:01 +01:00 |
|
Sergio Martins
|
4a47366ba0
|
Suffix our view interfaces with "*ViewInterface.h"
So we know they are a view interface. They'd have the same name
as the controller otherwise
|
2022-06-17 11:19:27 +01:00 |
|
Sergio Martins
|
a330042339
|
qtquick: Use enum instead of hardcoded number
|
2022-06-15 22:01:27 +01:00 |
|
Sergio Martins
|
5e2cc2cc12
|
Remove old fwd header
|
2022-06-15 21:56:18 +01:00 |
|
Sergio Martins
|
2a6bd9e415
|
Add overloads taking view interface instead of controller
People won't be using the controllers directly
|
2022-06-15 21:51:56 +01:00 |
|
Sergio Martins
|
1e3acd2a92
|
Remove done TODO
|
2022-06-15 21:18:56 +01:00 |
|
Sergio Martins
|
ab50f0f19b
|
qtquick: Add the invokables to DockWidget_qtquick.h
Actually in the interface class and we mark them invokable with
Q_MOC_RUN trick
|
2022-06-15 21:13:27 +01:00 |
|
Sergio Martins
|
1283cc87dc
|
qtwidgets: Added DockWidget_qtwidgets::widget()
|
2022-06-15 20:30:01 +01:00 |
|
Sergio Martins
|
c373354c0c
|
qtquick: Move some properties to DockWidget view
The controller won't be a QObject soon
|
2022-06-15 20:25:02 +01:00 |
|
Sergio Martins
|
d2aba705fb
|
qtquick: Rename guestView to guestItem in the public API
|
2022-06-15 20:13:42 +01:00 |
|
Sergio Martins
|
78815664cc
|
Move some dock widget view code into the shared DockWidgetViewInterface
|
2022-06-15 20:10:20 +01:00 |
|
Sergio Martins
|
e754bb25c6
|
Pass the controller to DockWidgetViewInterface
So it can start to have an API
|
2022-06-15 19:56:34 +01:00 |
|
Sergio Martins
|
4a3d15432e
|
Add a DockWidgetViewInterface
to share code between both QtQuick and QtWidget DockWidget views
|
2022-06-15 19:52:34 +01:00 |
|
Sergio Martins
|
921d94d731
|
Added MainWindow_qtwidgets::setPersistentCentralWidget()
Which is nicer for the end user as it deals in QWidget
|
2022-06-15 19:37:12 +01:00 |
|
Sergio Martins
|
01b2bbc11c
|
Rename "persistent widget" to "persistent view"
|
2022-06-15 19:27:04 +01:00 |
|
Sergio Martins
|
a45f53f9d9
|
examples: Don't mention mainWindow much in the examples
Added DockRegistry::mainDockingAreas() as synonym for mainwindows().
|
2022-06-15 18:45:37 +01:00 |
|
Sergio Martins
|
3e44e0c9a9
|
qtquick: Add API to the MainWindow view
QtQuick can't access our controllers (as they won't be QObject),
so they need to access via the view.
|
2022-06-15 18:37:27 +01:00 |
|
Sergio Martins
|
63f0bc9e02
|
Move some invokables from MainWindow controller to the qtquick view
As Q_INVOKABLE is just for QtQuick.
There's still some remaining to move, but they are exposing Controllers,
so will need a different API.
|
2022-06-15 18:13:50 +01:00 |
|
Sergio Martins
|
1c9b44394e
|
Add a comment
|
2022-06-15 18:01:49 +01:00 |
|
Sergio Martins
|
84315daa1a
|
Move MainWindow Q_PROPERTIES to the qtquick view
qtquick and views in general won't have access to controllers much
|
2022-06-15 17:59:17 +01:00 |
|
Sergio Martins
|
337afd2919
|
Minor header cleanup
|
2022-06-15 17:16:02 +01:00 |
|
Sergio Martins
|
126ed773cd
|
Make MainWindow::init() private
|
2022-06-15 16:55:46 +01:00 |
|