Commit Graph

4483 Commits

Author SHA1 Message Date
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
Sergio Martins
0e6f38381b Rename hostWidget to hostView 2022-06-27 21:41:48 +01:00
Sergio Martins
cad7cb1c8f Remove View::parent() and Item::host()
Those deal in QObject, which is being phased out
2022-06-27 21:40:05 +01:00
Sergio Martins
696ce887a8 docs: Add documentaiton about how to create a new frontend
Will be updating it as we go.
2022-06-26 22:33:46 +01:00
Sergio Martins
0a496aca76 tests: Add more tests for Window 2022-06-26 22:27:06 +01:00
Sergio Martins
68403c866b Fix Windows build 2022-06-26 21:14:13 +01:00
Sergio Martins
5669e07252 docs++ 2022-06-26 20:58:29 +01:00
Sergio Martins
07524ad00c Replace Qt::WindowState with KDDockWidget::WindowState 2022-06-26 20:45:28 +01:00
Sergio Martins
2f261b6b70 Add KDDockWidgets_p.h to hold private enums 2022-06-26 20:14:41 +01:00
Sergio Martins
ff9a7fba69 Remove Window::setProperty/property
Mostly unused and much easier to use a member variable.
2022-06-26 20:08:21 +01:00
Sergio Martins
d43c68bef4 Add a test for Window::handle 2022-06-26 20:01:56 +01:00