Sergio Martins
3d1b450cbb
Remove View::minimumSizeHint()
...
It's a QWidget specific concept, so move it to the qtwidgets
frontendcode. QtQuick won't need it.
2022-04-29 00:27:07 +01:00
Sergio Martins
93ccaff407
test: Fix test failure due to unimplemented wrapper method
2022-04-28 21:27:32 +01:00
Sergio Martins
a2d17fd0b9
Added Platform::frontendTypes()
...
Needed by the tests
2022-04-27 10:44:44 +01:00
Sergio Martins
9fa80d2061
vscode: Remove the Qt6 build folder from the Qt5 namespace
2022-04-26 23:40:35 +01:00
Sergio Martins
5ef9f4e8ac
vscode: Configure TestMate extension, tell it where the tests are
2022-04-26 23:39:48 +01:00
Sergio Martins
bcd639599a
Port tst_viewguard.cpp to doctest
...
doctest will be the unit-test framework for new tests, since we'll
have a lot of non-Qt code.
2022-04-26 23:35:25 +01:00
Sergio Martins
1b8ac876ce
Port away from WidgetType typedef
...
Introduces View::childViews(), required for the porting
2022-04-26 00:13:07 +01:00
Sergio Martins
420a85943a
Finally remove View::asQWidget()
...
Soon we can start the QtQuick port to the new architecture
2022-04-26 00:00:23 +01:00
Sergio Martins
00bee2edcb
Move the "kddockwidgets_qwidget" property hack into the Qt platform
...
This removes the last usages of asQWidget() from the generic part.
2022-04-25 20:44:05 +01:00
Sergio Martins
41383bf7a4
Remove more asQWidget() instances, only 3 remaining now
2022-04-25 20:25:56 +01:00
Sergio Martins
3bb0c6a8d2
Move MDIArea to qtwidgets/ as it was never ported to QtQuick
...
Can be ported if needed
2022-04-25 20:16:25 +01:00
Sergio Martins
0f61ef63a2
Split DropArea and MDILayout into View/Controller
2022-04-25 18:50:41 +01:00
Sergio Martins
6ebb432932
Port LayoutWidget away from QWidget
...
DropArea and MDILayout now inherit from it, in addittion to QWidget.
This mean DropArea can now be split into View/Controller alone,
without having to port LayoutWidget and MDILayout in the same commit,
which would be hard to review.
2022-04-24 12:57:20 +01:00
Sergio Martins
b08c49e788
Update KDBindings/signal.h
...
Has support for scoped connection handle now.
It disconnects the connection when deleted
2022-04-24 12:56:06 +01:00
Sergio Martins
1b6fa1bd36
Rename Type::MultiSplitter to Type::DropArea
...
MultiSplitter was removed
2022-04-23 15:28:17 +01:00
Sergio Martins
dc6d77e266
Fold MultiSplitter into DropArea
...
The separation was never very useful. There's was always only
one derived class, the DropArea. Merge the two.
2022-04-23 15:22:38 +01:00
Sergio Martins
4f5ffa2370
Add DropArea_qtwidgets stub
2022-04-23 14:42:03 +01:00
Sergio Martins
860a1a1bb0
Move DropArea into Controllers namespace
...
In preparation for View/Controller split.
2022-04-23 12:14:30 +01:00
Sergio Martins
daa6afd14c
Move DropArea into controllers/
...
In preparation to split it into View/Controller.
This is just the move, no code changed yet.
Next will be the namespace change.
2022-04-23 11:46:11 +01:00
Sergio Martins
28754ec260
Fold DropAreaWithCentralFrame into DropArea
...
This separation was never useful
2022-04-23 00:17:20 +01:00
Sergio Martins
ab0208b603
Remove the remaining asQWidget usages from WidgetResizeHandler
...
Remaining ones in the code base are because DropArea isn't ported
to View yet, that will come next
2022-04-21 23:15:04 +01:00
Sergio Martins
358dfd4cb7
Replace some usages of asQWidget with asQObject
...
That at least allows us to start the QtQuick port
2022-04-21 22:57:57 +01:00
Sergio Martins
6d2d5ca0ed
Add View::setMouseTracking()
2022-04-21 22:50:46 +01:00
Sergio Martins
e71c54f041
Add View::setCursor()
2022-04-21 22:41:52 +01:00
Sergio Martins
f9c3a301b5
Add View::render()
2022-04-21 22:31:11 +01:00
Sergio Martins
2c162630f4
Add View::setWindowOpacity()
2022-04-21 22:24:18 +01:00
Sergio Martins
8015e49bee
Add Platform::screenSizeFor(window), removes more asQWidget() usage
2022-04-21 22:10:59 +01:00
Sergio Martins
3f97845c9c
Use Window instead of QWindow in a few more places
2022-04-21 21:50:58 +01:00
Sergio Martins
4946cdeed3
Add Platform::screenNumberFor, removes more asQWidget() usage
2022-04-21 21:47:55 +01:00
Sergio Martins
eff3798987
Remove a few unused functions
2022-04-21 20:20:49 +01:00
Sergio Martins
554deb22da
Add View::releaseKeyboard(), removes some asQWidget() usage
2022-04-21 20:13:10 +01:00
Sergio Martins
0249b0e933
Remove more usages of asQWidget()
...
Adds View::mapTo()
2022-04-20 23:18:41 +01:00
Sergio Martins
2f59fb197b
Remove more usages of asQWidget()
2022-04-20 23:07:16 +01:00
Sergio Martins
38df31e99f
Port away from qApp->sendEvent()
2022-04-19 19:38:20 +01:00
Sergio Martins
a6cbfbf065
Rename tests_sendEvent() to sendEvent()
...
Non-test code will also need it
2022-04-19 19:32:56 +01:00
Sergio Martins
28b210586c
Remove deprecated and now unused Widget_*h classes
2022-04-19 19:28:15 +01:00
Sergio Martins
33073c75ee
tests: Remove the last usage of asQWidget() from tests/
...
Now only a few remaining in src/
2022-04-19 19:26:34 +01:00
Sergio Martins
23b2ea7195
tests: Remove last usage of asQWidget() from tst_docks.cpp
2022-04-19 19:20:46 +01:00
Sergio Martins
80beeb7ffb
tests: Remove last 2 usages of asQWidget from tst_qtwidgets.cpp
...
That method will be removed from View soon
2022-04-19 19:17:48 +01:00
Sergio Martins
d2b5bedfa1
tests: Remove another usage of deprecated asQWidget()
2022-04-19 19:14:58 +01:00
Sergio Martins
d5cec9f5de
tests: Move QtWidget specific tests to tst_qtwidgets.cpp
...
Let's have less ifdefs
2022-04-19 19:07:57 +01:00
Sergio Martins
05deea3cd8
tests: Move some ifdefed code to their respective platforms
2022-04-19 17:44:36 +01:00
Sergio Martins
7632278ba8
Remove asQWidget() instances from tst_multisplitter
...
This test is QWidget only, but we want to remove View::asQWidget(),
so just cast directly here.
2022-04-19 16:55:33 +01:00
Sergio Martins
8e4e998e74
tests: port away from QApplication::topLevelAt()
2022-04-14 23:44:39 +01:00
Sergio Martins
995882d2d1
tests: More porting away from asQWidget()
2022-04-14 19:06:41 +01:00
Sergio Martins
c8b896bdd6
tests: Remove casts to QTabBar
2022-04-14 18:31:41 +01:00
Sergio Martins
201e631a0b
tests: Remove some QPointer usage
...
Which in turn also removes some asQWidget() usage
2022-04-14 18:22:32 +01:00
Sergio Martins
a3d1990857
tests: Port more tests away from asQWidget()
2022-04-14 18:05:23 +01:00
Sergio Martins
924b32b3c5
tests: Port some QWindow based utils to Window::Ptr
...
So it doesn't depend on Qt
2022-04-13 23:49:29 +01:00
Sergio Martins
664798ee6e
tests: Remove some asQWidget() calls
2022-04-13 22:28:04 +01:00