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
Sergio Martins
f3532e6ea0
Re-add windowForHandle to fix the windows build
2022-06-29 09:36:19 +01:00
Sergio Martins
cba3f77906
Revert "Remove Window::setProperty/property"
...
This reverts commit ff9a7fba69 .
It's still being used by windows code paths
2022-06-29 09:35:12 +01:00
Sergio Martins
91e2df3ead
Fix QtTest being included without a dev-mode guard
2022-06-29 10:19:57 +01:00
Sergio Martins
fd4431246c
Remove the "groupViewInMDIResize" property from DockRegistry
...
Moved it into the QmlHelpers, as it's QtQuick specific.
Allows to remove a asQObject() call.
2022-06-28 21:40:12 +01:00
Sergio Martins
2f12cd8f3d
Replace a QPointer with a ViewGuard
...
Removes another usage of asQObject
2022-06-28 20:47:57 +01:00
Sergio Martins
3ef91d8b7f
Minor rename: m_draggableWidget -> m_draggableView
2022-06-28 20:36:55 +01:00
Sergio Martins
558eef792f
Don't connect to QObject::destroyed directly
...
Connect to View::beingDestroyed instead.
Decouples more from QObject and allows to remove some asQbject()
calls
2022-06-28 20:33:02 +01:00
Sergio Martins
269e062609
Don't connect to QObject::objectNameChanged
...
Connect to the view's signal instead.
Decouples a bit more from QObject
2022-06-28 20:22:58 +01:00
Sergio Martins
2eb72114d7
Share View::setObjectName() implementation between qtwidgets/qtquick
2022-06-28 20:12:07 +01:00
Sergio Martins
a0d5c25c29
Remove 2 unneeded usages of QObject stuff
2022-06-28 19:23:43 +01:00
Sergio Martins
934ba440b3
Rename itemForWidget to itemForView
...
itemForObject is removed as it's not used
2022-06-28 18:56:13 +01:00
Sergio Martins
aff9806ab1
Port away from using event filter in DockWidget.cpp
...
Platform now abstract the emittion of window activation/deactivation
2022-06-28 18:36:10 +01:00
Sergio Martins
0cd515679f
Don't handle ParentChange event directly, use the signal instead
...
This removes some duplicated code and decouples from QObject a bit
more
2022-06-28 17:24:03 +01:00
Sergio Martins
5a657785d7
Remove event filter from Item
...
In preparation for non-QObject views
2022-06-28 13:43:43 +01:00
Sergio Martins
39274d3e6b
Fix crash
2022-06-28 13:35:31 +01:00
Sergio Martins
d92691bc5c
Add a View::parentChanged() signal
...
Will help removing event filters from non-Qt code
2022-06-28 13:19:23 +01:00
Sergio Martins
83a2620015
Remove View_qtwidgets::asQWidget
2022-06-27 23:54:18 +01:00
Sergio Martins
3dd455bfb7
Port some code away from View::asQObject()
...
Use View_qt::asObject() instead
2022-06-27 23:37:27 +01:00
Sergio Martins
5389bcc825
Add View_qt as a base class for View_qtwidgets and View_qtquick
...
So it can contain the "asObject()" method, which we're removing
from View.h
2022-06-27 22:53:42 +01:00
Sergio Martins
49ccecbadd
Remove some unneeded asQObject calls
2022-06-27 22:41:37 +01:00
Sergio Martins
64619d85e9
tst_qtwidgets: Remove some usages of asQObject()
2022-06-27 22:00:49 +01:00
Sergio Martins
1e5cbed254
View: Group virtual methods together
2022-06-27 21:55:44 +01:00