Sergio Martins
19730ab6a4
Fix crash when using MainWindow::layoutEqually()
...
When distributing space we should honour the other widgets
min-size too, and not give too much
Since the layouting code is complex, this won't be backported to
1.3
2021-03-31 15:23:24 +01:00
Sergio Martins
44ae75110b
Added MainWindowBase::closeAllDockWidgets()
2021-03-31 10:51:20 +01:00
Sergio Martins
4ab2a93d59
Merge branch '1.3'
2021-03-31 10:01:18 +01:00
Sergio Martins
f82ea82403
Harden Item::layoutEqually()
...
Could cause an infinit loop if the layout was corrupted
2021-03-31 10:00:28 +01:00
Allen Winter
75c7744e59
move the class private header up in the include order
2021-03-23 08:36:24 -04:00
Allen Winter
1e8bdba2dd
minor spelling fix
2021-03-23 07:47:31 -04:00
Allen Winter
2587831855
src/MainWindowMDI.cpp - add trailing newline
2021-03-23 07:46:27 -04:00
Allen Winter
f00a283722
fix SPDX-FileCopyrightText: and Author: lines
2021-03-23 07:44:37 -04:00
Sergio Martins
e3b333aca8
Make DockWidget::raise() raise the frame in MDI mode
2021-03-18 15:08:54 +00:00
Sergio Martins
c9602c2b0a
Merge branch '1.3' into master
2021-03-15 18:25:25 +00:00
Sergio Martins
c660c80a15
Added DockWidgetBase::frameGeometryChanged()
2021-03-15 18:25:01 +00:00
Sergio Martins
6f889d1c3b
Fix indicator overlay z-order when using Flag_KeepAboveIfNotUtilityWindow
...
The overlay window needs to be on top
Fixes #181
2021-03-15 18:23:00 +00:00
Sergio Martins
425d53fbe3
cmake: Remove unused ${RESOURCES_QUICK} variable
2021-03-13 09:35:56 +00:00
Sergio Martins
b0cb983830
qtquick: relax the warning about removing dock widget twice
...
can happen due to benign reentrancy
2021-03-10 13:38:22 +00:00
Sergio Martins
02515d8956
MDI: Fix dock widget size getting out of sync with the layout item
...
When resizing with mouse, update the layout item too.
Wasn't a big deal, as this is MDI, layout doesn't do much. But
last used geometries werent being saved
2021-03-09 20:30:41 +00:00
Sergio Martins
447b4337dd
Add DockWidget::frameGeometry()
2021-03-09 17:55:36 +00:00
Sergio Martins
633daf124e
Fix some warnings about shadowing methods
2021-03-09 15:43:36 +00:00
Sergio Martins
446560931b
MDI: Fix docked widget geometries not being remembered when floating
...
We shouldn't move the Frame directly. Instead, do it through the
layout, which will then remember the last docked geometry
2021-03-07 16:56:37 +00:00
Sergio Martins
9fe11a7ad5
qtwidgets|MDI: Fix showing resize handles
...
if there was no frame being resized it would be nullptr, and hence
enter that block.
QtQuick not affected since it uses mouse areas to change the cursor
shape
2021-03-05 12:19:16 +00:00
Sergio Martins
b099994ac5
qtquick|MDI: Remove the QtQuick special case
...
Now behaves as QtWidgets
2021-03-05 12:05:19 +00:00
Sergio Martins
a8d56ef4e6
qtquick6: Fix build
2021-03-04 13:57:25 +00:00
Sergio Martins
1f8d212dee
Qt6: Fix build
...
Types in properties can't be forward declared anymore
2021-03-04 13:27:58 +00:00
Sergio Martins
64ea87f4cc
Add missing fwd header for Frame_p.h
2021-03-04 13:27:32 +00:00
Sergio Martins
e6fef433d5
Added DockWidgetQuick::frame()
2021-03-03 17:59:43 +00:00
Sergio Martins
2f212031b3
qtquick|MDI: Don't set a size smaller than its min
2021-03-03 17:03:06 +00:00
Sergio Martins
586ab710f6
qtquick: Expose the tabbar height property
2021-03-03 16:36:23 +00:00
Sergio Martins
d263ae649e
Allow to configure the MDI popup threshold
2021-03-03 16:33:32 +00:00
Sergio Martins
c81ca45e41
qtquick|MDI: Improvements for resizing
2021-03-03 15:21:22 +00:00
Sergio Martins
9ce50fa305
qtquick: Minor refactoring, deal in CursorPosition
2021-03-03 14:59:24 +00:00
Sergio Martins
f0240deaeb
qtquick: Use Q_NAMESPACE for the KDDockWidgets namespace
2021-03-03 14:40:24 +00:00
Sergio Martins
017f06dcfb
qtquick|MDI: Improvements for the resize handler
...
More margin, fixed sizes of some handlers and fixed z order
2021-03-03 13:47:14 +00:00
Sergio Martins
54f17cb546
qtquick: Remove unneeded mouse area from frame
...
Just to simplify things. Let's just have the resize handlers.
A target can have many event sources.
2021-03-03 13:22:12 +00:00
Sergio Martins
f174ab6ebc
qtquick: Create ResizeHandlerHelper.qml to save some code
2021-03-03 12:57:37 +00:00
Sergio Martins
263f936690
Fix dock widgets in MDI getting bogus sizes
...
Setting the Item's min-size would resize the guest while the
guest was being set
2021-03-03 12:20:40 +00:00
Sergio Martins
bd903a0353
qtquick: Fix Frame's minimum size
...
It wasn't accounting for the margins, and the "heightWhenVisible"
property was Nan, making the entire expression be 0
2021-03-03 10:08:37 +00:00
Sergio Martins
5040d3a6b6
qtquick: Allow to update the size constraints from QML
2021-03-03 10:02:45 +00:00
Sergio Martins
3684da776d
Added DockWidgetQuick::frameVisualItem()
2021-03-03 09:27:27 +00:00
Sergio Martins
bc17c8e5b3
MDI: Don't active other resize handlers when resize in progress
...
When we're resizing a docked dock widget, the other dock widget's
resize handlers should be disabled
2021-03-02 22:21:12 +00:00
Sergio Martins
778c647782
qtquick: Register Frame
2021-03-02 22:14:07 +00:00
Sergio Martins
2a91f6279b
qtquick: Minor code refactoring
...
Uses less code
2021-03-02 22:05:48 +00:00
Sergio Martins
4ef2ddbfec
Add DockRegistry::frameInMDIResize()
...
Only emitted in a MDI layout. Emitted when one dockwidget is
being resized
2021-03-02 22:00:54 +00:00
Sergio Martins
ff06f0cc73
Fix build
2021-03-02 21:06:57 +00:00
Sergio Martins
a37ab34fae
qtquick|MDI: When dragging don't trigger the resize drag handlers
...
MouseArea.enabled, even if false, will change the cursor shape.
So explicitly change the cursor to ArrowShape
2021-03-02 20:58:44 +00:00
Sergio Martins
cb2ffe66af
qtquick|MDI: Fix resizing inner MDI dock widgets
...
It was flaky. The mouse move events came from global event filter
but the mouse press came from the Frame's mouse area. Sometimes the
QQuickWindow wouldn't deliver the press to the frame if it was done
outside, while the moves were changing the cursor shape since
we had a treshold
Now we guarantee that whenever the cursor changes the resize
will really happen
2021-03-02 14:40:42 +00:00
Sergio Martins
16b0770d72
qtquick: Fix minor qml warning
2021-03-02 14:31:15 +00:00
Sergio Martins
3fe44ee735
qtquick: Enable transparency for the floating window
...
You can now have windows with round corners
2021-03-02 12:19:51 +00:00
Sergio Martins
40d1a72300
qtquick: Fix QtQuick min-sizes not working when wrapped
2021-03-02 11:02:15 +00:00
Sergio Martins
4d428d42f6
Added DockWidgetBase::setMDIZ(int z)
...
Sets the Z order of the dockwidget within the MDI layout
2021-03-02 10:43:07 +00:00
Sergio Martins
cf0665c9b6
Added DockWidgetBase::setMDISize()
...
Only for dock widgets in MDI layout, where they are freely resizable
2021-03-02 10:21:29 +00:00
Sergio Martins
93c011c69d
Added DockWidgetBase::setMDIPosition(QPoint pos)
...
Moves the window within the layout.
Only applies to MDI layouts.
2021-03-01 23:41:53 +00:00