Sergio Martins
4e99b44823
Fix some English typos in comments
2022-07-07 11:04:08 +01:00
Sergio Martins
54802ed856
Remove the last Qt event filter from the backend
...
Ported to our own event filter
2022-07-06 23:08:21 +01:00
Sergio Martins
572b62aa9a
Port DragController/Wayland code from Qt event filter
...
Uses our own event filter abstraction now
2022-07-05 23:22:28 +01:00
Sergio Martins
b74ca53ac8
Fix potential crash
...
It's a 2.0 bug on wayland though, but at least bail early.
2022-07-05 23:04:19 +01:00
Sergio Martins
74e9cc94e6
Also send DnD events through the event filter interface
2022-07-04 23:37:22 +01:00
Sergio Martins
8edf8737ce
Port FallbackMouseGrabber to our own event filter abstraction
...
No longer uses Qt's event filter directly
2022-07-04 22:33:40 +01:00
Sergio Martins
b6460c11f7
Add EventFilterInterface::onMouseEvent()
...
Some event consumers don't want to overload N methods and just
overload one instead
2022-07-04 22:06:30 +01:00
Allen Winter
d75e691795
appveyor.yml - for Qt6 builds use Qt6.3
2022-07-04 09:20:53 -04:00
Sergio Martins
b68e348ff3
Add a .pre-commit-config.yaml file
2022-07-04 11:22:53 +01:00
Sergio Martins
54ad9ec2f2
cmake: format with cmake-format
2022-07-04 11:20:19 +01:00
Sergio Martins
9283a55364
Fix Platform only sending mouse press event
...
Was ignoring other mouse event types
2022-07-03 22:26:15 +01:00
Sergio Martins
35c1517709
Handle double click event in EventFilterInterface too
2022-07-03 22:21:57 +01:00
Sergio Martins
7b9bde123b
Use ViewGuard instead of QPointer
2022-07-03 22:12:32 +01:00
Sergio Martins
7b780bc7e9
Add Windows to DisplayType enumerator too
2022-07-03 21:49:18 +01:00
Sergio Martins
84da42c262
Add Platform_qt::isLeftMouseButtonPressed()
2022-07-03 21:44:42 +01:00
Sergio Martins
1bcd425849
Add Platform::displayType()
2022-07-03 21:36:32 +01:00
Sergio Martins
aafa9526f6
Add Platform::organizationName()
...
So we don't use QCoreApplication::organizationName() directly
2022-07-03 20:56:48 +01:00
Sergio Martins
16565fcd46
Add Platform::setMouseCursor()
...
So we don't depend directly on qGuiApp
2022-07-03 20:04:53 +01:00
Sergio Martins
f288d953fc
Add Platform::applicationName()
...
so controllers don't access qGuiApp directly
2022-07-03 19:55:26 +01:00
Sergio Martins
f1fb3f1eac
Remove unneeded event filter from DockWidget.cpp
...
It has been ported already
2022-07-03 19:47:26 +01:00
Sergio Martins
70da9cc638
appveyor: Trying to fix the QtQuick tests
...
Error was: Failed to create OpenGL context for format QSurfaceFormat.
Reproduced in my docker and setting this env var fixed it.
2022-07-03 19:44:03 +01:00
Sergio Martins
c63290e6d3
Port WidgetResizeHandler away from Qt event filter
2022-07-02 21:27:11 +01:00
Sergio Martins
57c311f850
Fix some typos in comment
2022-07-02 21:26:02 +01:00
Sergio Martins
0963967939
Add mouse move and release events to EventFilterInterface
2022-07-02 20:15:13 +01:00
Sergio Martins
7d21516f6d
Add a m_thisWeakPtr member to Views
...
Allows to promote back to shared pointer
2022-07-02 20:12:33 +01:00
Sergio Martins
ba71ad7407
View_qt: Deliver events to any subscribed event filters
...
Next we'll por some Qt event filters to View's event filter abstraction
2022-07-02 13:43:38 +01:00
Sergio Martins
8af8c603c1
Allow to install event filters on view too
...
So we can port away from Qt event filters.
In a followup will deliver events, one commit per type or so.
Not all events will be filtered, only the ones used by us
2022-07-02 13:31:16 +01:00
Sergio Martins
d461c41d8b
Fix release build
2022-07-02 12:54:55 +01:00
Sergio Martins
edb2538220
Port DockRegistry away from Qt event filters
...
Uses our filter abstraction now
2022-07-02 12:50:52 +01:00
Sergio Martins
5639b5632a
tests: Construct QCoreApplication earlier
...
The global event filter wasn't being set as it didn't have
a qGuiApp at that point
2022-07-02 12:48:16 +01:00
Sergio Martins
c72fdf3586
Add EventFilterInterface and port DockRegistry to it
...
Some classes wont have any Qt in it, so they need another way
to install global event filters. Added API to Platform.h for this
purpose. Implemented as regular event filter in Platform_qt.
2022-07-01 15:28:15 +01:00
Sergio Martins
a690477b73
Move isProcessingAppQuitEvent from DockRegistry to Platform
...
As different platforms will do this differently
2022-07-01 11:31:40 +01:00
Waqar Ahmed
3638622c48
Fix unity build
2022-06-30 13:53:40 +05:00
Waqar Ahmed
7fc7fba697
Fix static build
2022-06-30 13:16:20 +05:00
Sergio Martins
e7a4b3ecdd
Windows: Require VS 2019 as a minimum
...
There's build failures in KDBindings with earlier versions, among
other build problems.
2022-06-29 15:16:04 +01:00
Sergio Martins
5977ffcc1c
appveyor: Run ctest with -V
...
So I can see why tests are failing
2022-06-29 14:56:55 +01:00
Sergio Martins
16f6a0f35c
Trying to fix Mingw build
...
FloatingWindow.cpp:42: error: "NOMINMAX" redefined [-Werror]
2022-06-29 14:50:21 +01:00
Sergio Martins
3845f8cfae
Trying to fix msvc 2017 build
2022-06-29 14:48:58 +01:00
Sergio Martins
9546e55cb0
Trying to fix msvc 2017 build
2022-06-29 14:46:41 +01:00
Sergio Martins
5407e23d31
qtquick: Fix leaks at test exit
2022-06-29 14:21:01 +01:00
Sergio Martins
99240a2f4e
vscode: Add launch for tst_floatingwindow
2022-06-29 14:18:03 +01:00
Sergio Martins
d7f677c8fc
Remove unused ClassicIndicatorsOverlay_qtwidgets file
2022-06-29 13:59:36 +01:00
Sergio Martins
1d0a304d2b
Fix a bunch of warnings in tst_multisplitter
...
The handler wasn't installed so they weren't fatal.
2022-06-29 13:33:40 +01:00
Sergio Martins
bf6e8886b1
Don't build TestHelper* in non-dev mode
...
They're just for the tests.
2022-06-29 12:37:40 +01:00
Sergio Martins
cadd94c233
Fix drop indicator overlay leak
2022-06-29 12:31:16 +01:00
Sergio Martins
a99c3e1b70
Fix potential crash found by the tests
...
Item::checkSanity() can be called via deleteLater when we don't
have a platform anymore
2022-06-29 12:31:16 +01:00
Sergio Martins
214e7d2013
qtquick: Fix pure-virtual method call
2022-06-29 10:11:30 +01:00
Sergio Martins
219ad5be01
Merge branch '2.0' of github.com:KDAB/KDDockWidgets into 2.0
2022-06-29 10:00:59 +01:00
Sergio Martins
199ad09185
Fix shadowing warning
2022-06-29 10:53:46 +01:00
Sergio Martins
e60d535242
vscode: Add a msvc launch for the qtquick example
2022-06-29 10:00:26 +01:00