Sergio Martins
d2739d7218
qtquick: disable tabbar mouse area if tabbar hidden
2021-03-01 13:15:30 +00:00
Sergio Martins
5702101935
Add a Q_PROPERTY for Frame::actualTitleBar()
2021-03-01 12:50:25 +00:00
Sergio Martins
35d45a7523
qtquick: Fix some places which weren't forwarding userType
2021-02-28 20:44:19 +00:00
Sergio Martins
e37c1f0e8c
qtquick: Pass the userType all the way to titleBarFilename()
2021-02-28 20:33:46 +00:00
Sergio Martins
ac0d35ef12
Fix clazy warning
2021-02-28 19:03:16 +00:00
Sergio Martins
15e63381a9
Added DockWidgetBase::setUserType(int)
...
This is an opaque value which KDDW won't try to interpret or do
anything with it other than forward it to the FrameworkWidgetFactory.
Which if specialized by the user he can have different title bars
for different said "dock widget types"
2021-02-28 18:57:35 +00:00
Sergio Martins
aa49ddacd5
qtquick: Allow the user to change the contents margin for Frame
2021-02-28 18:13:55 +00:00
Sergio Martins
f68e876bcb
qtquick: Make the setWidget(QQuickItem) overload also fill parent
2021-02-28 16:05:44 +00:00
Sergio Martins
6b82ded399
qtquick: Allow derived FloatingWindow to override margins
2021-02-28 16:04:28 +00:00
Sergio Martins
000e67a09e
qtquick: Register DockWidgetBase
2021-02-28 15:26:05 +00:00
Sergio Martins
1b6aa4c3d1
qtquick: Inject the dock registry into the context
...
Useful to call from QML if needed
2021-02-28 15:01:05 +00:00
Sergio Martins
8912a2c842
Remove debug
2021-02-28 14:50:12 +00:00
Sergio Martins
4de50db68c
Added DockWidgetQuick::setWidget(QQuickItem*) overload
...
And expose it to QML
2021-02-28 14:48:09 +00:00
Sergio Martins
6b95e4aac9
Allow to add to MDI area and start as hidden
...
It will remember its position
2021-02-28 00:51:12 +00:00
Sergio Martins
c27658822e
Add MainWindowMDI::addDockWidget() taking QPointF
2021-02-28 00:24:08 +00:00
Sergio Martins
8ec980c1e8
Add convenience DockRegistry::mdiMainWindowByName()
2021-02-28 00:20:33 +00:00
Sergio Martins
a952c5829a
qtquick: Add MainWindowMDI.qml
...
A convenience wrapper
2021-02-27 23:48:15 +00:00
Sergio Martins
20e1b55a8a
qtquick: make sure our QML types are registered early on
2021-02-27 15:52:31 +00:00
Allen Winter
a2605868db
Merge branch '1.3'
2021-02-26 18:30:03 -05:00
Allen Winter
67be35b9f8
CMakeLists.txt - don't create the dummy docs target
...
it can conflict when used as a submodule
2021-02-26 18:29:10 -05:00
Allen Winter
b15eb1e62f
Merge branch '1.3'
2021-02-26 17:09:08 -05:00
Allen Winter
d2e3ec0448
buildsystem - add a 'docs' target
...
only available with cmake -DKDDockWidgets_DOCS=true
2021-02-26 17:07:58 -05:00
Allen Winter
828c403fe5
Merge branch '1.3'
2021-02-26 16:40:18 -05:00
Allen Winter
53d3bc86ea
conan - support build_with_qt6
2021-02-26 16:35:33 -05:00
Allen Winter
6ed8742cc1
buildsystem - install library with "-qt6" when built for Qt6
2021-02-26 16:35:08 -05:00
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