Sergio Martins
7bd047f6e6
qtquick: Make DockWidget.qml be a Rectangle
...
So user can change its color
2021-02-26 19:29:30 +00:00
Sergio Martins
482757b1cc
qtquick: Don't hardcode "FloatingWindow.qml"
...
Allow the user to specify their impl
2021-02-26 19:21:42 +00:00
Sergio Martins
c143f832c6
qtquick: Don't hardcode "Frame.qml"
...
Allow the user to specify their impl
2021-02-26 19:12:53 +00:00
Sergio Martins
67a173ef53
qtquick: Don't hardcode "DockWidget.qml"
...
Allow the user to specify their impl
2021-02-26 18:57:31 +00:00
Sergio Martins
c2c37488a3
Merge branch '1.3'
2021-02-26 17:26:35 +00:00
Sergio Martins
8c1840b9cf
Fix popups in overlayed dockwidgets not working
2021-02-26 17:26:04 +00:00
Sergio Martins
1088e37cd4
Improve warning
2021-02-26 17:00:22 +00:00
Sergio Martins
4d6c3dac3d
qtquick: Warn there's no QQmlEngine set
2021-02-26 16:58:58 +00:00
Sergio Martins
adf29873ef
Define KDDOCKWIDGETS_QTQUICK when linking against QtQuick KDDW
...
This is added when building, but also needs to be in the public
interface
2021-02-26 16:47:04 +00:00
Sergio Martins
772afe29ea
Merge branch '1.3'
2021-02-26 15:45:46 +00:00
Sergio Martins
9c78953800
Fix tests on linux
...
Native title bar is specific to Windows
2021-02-26 15:38:00 +00:00
Sergio Martins
ff67b9bcbc
Merge branch '1.3' into master
2021-02-26 15:20:32 +00:00
Sergio Martins
103de4f910
Update ChangeLog
2021-02-26 15:15:29 +00:00
Sergio Martins
7c3f06f98f
When using a native title bar make floating window geometry smaller
...
When undocking a dock widget, the size of the dock widget should
be maintained
Fixes #174
2021-02-26 15:12:43 +00:00
Sergio Martins
6ac77a7662
Use the flags instead of the enum
2021-02-26 14:36:22 +00:00
Sergio Martins
610b85d01a
Minor readability improv: replace bool with enum
...
CC issue #174
2021-02-26 14:32:55 +00:00
Sergio Martins
d4d222ebd3
Update ChangeLog
2021-02-25 22:01:54 +00:00
Sergio Martins
5cbed1d34b
if native title bar + Qt::Tool, double-click should redock
...
When using the native Windows title bar with Qt::Tool, double-clicking
the title bar should redock the window.
Fixes #173
2021-02-25 21:59:43 +00:00
Sergio Martins
ba4a2eef5c
Also cancel a drag if we receive a non-client double click
2021-02-25 21:58:12 +00:00
Sergio Martins
acdf03fc84
Merge branch '1.3' into master
2021-02-24 13:56:28 +00:00
Sergio Martins
a6f19e07c4
Fixed Flag_NativeTitleBar not hidding the client title bars
...
When restoring the layout the native title bar would be visible
Fixes #170
2021-02-24 13:52:44 +00:00
Sergio Martins
f07301bb1e
Update ChangeLog
2021-02-24 12:10:38 +00:00
Sergio Martins
2116e3741b
Improve restoring layout when RestoreOption_RelativeToMainWindow is used
...
Doesn't make much sense to apply a scalling factor to the floating window's
position. Instead we should apply the factor to the delta position between
the main window and the floating window
Fixes #171
2021-02-23 21:02:01 +00:00
Sergio Martins
1f11c732ed
Remove unused function
2021-02-23 20:16:32 +00:00
Sergio Martins
e42bee27a4
Remove unused function
2021-02-23 20:14:25 +00:00
Sergio Martins
b36dcf1325
Fix macOS developer-build due to unused variable
2021-02-22 10:46:56 +00:00
Sergio Martins
421746c943
Margins now honour logical dpi and update when changing screen
2021-02-22 00:02:57 +00:00
Sergio Martins
f544ac58e6
Apply the logical DPI factor to the MainWindow contents margins
2021-02-21 23:42:11 +00:00
Sergio Martins
6047275cfa
Add a localDpiFactor helper
...
As we don't do everything via QStyle. layout margins for example
still need a manual factor
2021-02-21 23:02:49 +00:00
Sergio Martins
630d832f50
Emit DockRegistry::windowChangedScreen()
...
We now have a signal we can connect to adapt sizes to logical
dpi changes
2021-02-21 19:45:35 +00:00
Sergio Martins
e0a34465d8
MDI: Raise dock widget when clicking on it
2021-02-21 16:26:16 +00:00
Sergio Martins
443a4049c3
qtquick|MDI: Also support raising non top-level windows
...
If we drag mdi windows around they'll raise now
2021-02-21 15:44:56 +00:00
Sergio Martins
54980e7585
Fix Qt6 build on Windows
2021-02-20 21:42:44 +00:00
Sergio Martins
14ff8bb26b
Fix mingw build
2021-02-19 11:33:01 +00:00
Sergio Martins
615bb0ee3f
Fix linux developer-build
2021-02-19 11:25:02 +00:00
Sergio Martins
986fd8c13b
CustomFrame: Don't use QWindow::fromWinId()
...
as that creates a new QWindow
2021-02-18 18:43:43 +00:00
Sergio Martins
ec1cc27815
Added DockRegistry::windowForHandle()
2021-02-18 18:39:35 +00:00
Sergio Martins
3874e2d886
CustomFrame: Added a recursion guard
2021-02-18 18:32:14 +00:00
Sergio Martins
1afcf21529
CustomFrame: Same some cpu cycles in case we don't care about the events
2021-02-18 18:21:32 +00:00
Sergio Martins
4c0f3bd7cb
Fix build with older compilers
2021-02-18 17:50:14 +00:00
Sergio Martins
9aafa2a662
CustomFrame: the native event handling now honours the features
2021-02-18 15:50:12 +00:00
Sergio Martins
029ba1202e
CustomFrame: Add a NativeFeatures enum
...
Replaces the htCaptionRect. As we don't want to pass many arguments,
instead just pass a struct which describes which native features
to enable
2021-02-18 15:14:52 +00:00
Sergio Martins
b5043b2b87
CustomFrame: Move the features enum up 1 level
2021-02-18 14:40:20 +00:00
Sergio Martins
52ce80fd97
CustomFrame: Use an enum instead of bool return in our callback
2021-02-18 14:22:26 +00:00
Sergio Martins
cd19c5eb38
CustomFrame: Allow to specify a callback for QWindow opt-in
...
Which QWindows should get a custom frame is up to you. Just
return true in the callback.
2021-02-18 14:10:40 +00:00
Sergio Martins
0d101d779f
Fix unused variable warning
2021-02-18 11:29:02 +00:00
Milian Wolff
1ff6f43eac
Allow disabling the uninstall target
...
Prevents clashes when kddockwidgets is included as a submodule
into a project that already defines an uninstall target.
2021-02-17 20:47:49 +01:00
Sergio Martins
98d892f643
CustomFrame: Apply the drop-shadow code initially
2021-02-17 19:46:56 +00:00
Milian Wolff
cc80afff7d
Fix compile on Linux
2021-02-17 20:36:37 +01:00
Milian Wolff
91ad74e3ad
Relay status tip events to the parent of FloatingWindow
...
That allows the status bar of the main window - if available - to
show the event contents.
2021-02-17 20:36:37 +01:00