Mauro Persano
f13f0129d4
Add API to set center widget margins on MainWindow
...
We can't change the margins by subclassing MainWindow and overriding
centerWidgetMargins, since the margins are initialized in MainWindow's
constructor. This adds public API to MainWindow to allow us to change
the margins later on.
2022-01-20 22:37:36 +00:00
Sergio Martins
22ffc6c7ea
Fix QtQuick build
2022-01-20 22:37:36 +00:00
Mauro Persano
d1767b5534
Don't render frame for central persistent widget
...
When the main window has a central persistent widget, make sure the
containing tab widget doesn't render a frame around it.
2022-01-20 22:08:17 +00:00
Allen Winter
2fbe4f872e
Merge branch '1.5'
2022-01-20 08:15:23 -05:00
Allen Winter
93e60a743e
update copyright year
2022-01-20 08:05:26 -05:00
Allen Winter
328a14b46a
src/private/FloatingWindow.cpp - fix compile with mingw
...
NOMINMAX should only be defined with MSVC on Windows.
2022-01-20 07:50:24 -05:00
Allen Winter
9c17b44ad7
Merge branch '1.5'
2022-01-19 16:23:47 -05:00
Allen Winter
cf40cadce8
cmake/KDAB/modules/KDQtInstallPaths.cmake - sync to upstream
2022-01-19 16:23:28 -05:00
Sergio Martins
16c43b8c24
Make cmake config file honour KDDockWidgets_X11EXTRAS
2022-01-12 09:55:02 +00:00
Allen Winter
8391d85d48
appveyor.yml - add libxkbcommon on ubuntu for qt6
2022-01-09 10:17:39 -05:00
Allen Winter
e59e5d7a71
appveyor.yml - add builders for Qt6
2022-01-09 09:50:58 -05:00
Sergio Martins
aa3c3272ee
Fix examples build on macOS and Windows
...
For some reason a X11 dependency was commited by mistake.
2022-01-08 18:39:16 +00:00
Sergio Martins
1d8fad245a
Fix build with 5.12
...
This is a special request from a customer who can't upgrade right
now.
Min is still 5.15 in CMakeLists.
2022-01-07 17:55:53 +00:00
Sergio Martins
789c531f3d
Fix parent of the MDIArea layout
...
Fixes tests on QtQuick. On QtWidgets it would get reparented
so tests already passed.
2022-01-07 17:45:37 +00:00
Sergio Martins
5b87fb4435
Add an examples/mdi_with_docking/ example
2022-01-07 17:31:20 +00:00
Sergio Martins
402f0b9d90
Add a fwd header for MDIArea.h
2022-01-07 17:27:45 +00:00
Sergio Martins
37567d3980
Introduce MDIArea, a widget that can host MDI dock widgets
...
This is a public wrapper to MDILayoutWidget. The latter is private
and has internals we don't want to expose. Instead create a public
class with a thin API.
You no longer need to create a MainWindowMDI to have MDI support.
You can now have a normal MainWindow (with normal docking) and
add some dock widget that as a MDIArea as widget.
2022-01-07 17:13:16 +00:00
Sergio Martins
6cef4cea2c
Port frameParent() to firstParentOfType()
2022-01-07 14:59:33 +00:00
Sergio Martins
aea2bf971b
Add TestDocks::tst_mdi_mixed_with_docking
...
Tests that we can dock a MDI Layout.
Meaning the main window would support both docking and MDI.
This basic test passes. But there's still a lot of bugs to fix
2022-01-07 12:50:25 +00:00
Sergio Martins
00a0e455e7
Make MDILayoutWidget::addDockWidget's initial opt param optional
...
It's seldom needed
2022-01-07 12:41:24 +00:00
Sergio Martins
d5c7fbfedd
Install MDILayoutWidget_p.h too
2022-01-07 12:32:39 +00:00
Sergio Martins
bea6c09494
CMake: Add a clang -ftime-trace preset
...
Just for profiling build times.
2022-01-06 13:54:34 +00:00
Allen Winter
0adb130d4b
src/private/FloatingWindow.cpp - on Windows, define NOMINMAX
...
else windows.h will define the max() macro which doesn't
play nice with the std::numeric_limits::max()
Issue #266
2021-12-27 08:09:09 -05:00
Allen Winter
92d0d74641
src/private/FloatingWindow.cpp - on Windows, define NOMINMAX
...
else windows.h will define the max() macro which doesn't
play nice with the std::numeric_limits::max()
Issue #266
2021-12-27 07:56:00 -05:00
Sergio Martins
4d4f2a0183
Merge branch '1.5'
2021-12-22 17:07:24 +00:00
Alistair Baxter
f1e19ec59c
Ensure that floating windows are not positioned off-screen when they are shown
...
At points when a Rect is to be used to position a floating widget,
test to see if it overlaps any of the system's screens.
If it does not, adjust the Rect to within the closest screen edges.
2021-12-22 16:48:45 +00:00
Sergio Martins
64b5564f99
README: Clarify that for QtQuick we suggest Qt6
2021-12-22 16:08:55 +00:00
Sergio Martins
66cc9ddc03
Updated ChangeLog
...
Closes #259
2021-12-22 15:39:00 +00:00
Eism
336f1146d3
Fixed the restoration of geometry when user closed maximized window
2021-12-22 15:31:26 +00:00
Mauro Persano
29b1a434c4
Make lazy resize rubber bands optionally top-level
...
To workaround MFC bug
2021-12-14 11:32:45 +00:00
Allen Winter
c0c8399bd7
README.md - add a bit of info about Qt private packages on linux
...
related to issue#257
2021-11-26 09:04:30 -05:00
Sergio Martins
b20ce0895b
X11: Add support for robust z-order detection
...
Qt doesn't provide any way to know which window is directly
bellow the cursor. Generally this is fine since floating windows
are always on top of the main window. However, if Qt::Tool is removed,
then they can be behind, and KDDW can't know which window to overlay
the drop indicators onto.
This patch uses XLib's XQueryTree to solve this.
This is still experimental, hence disabled by default.
For now it's disabled by default, since it's experimental.
You can turn it on by passing -DKDDockWidgets_XLib=ON
Fixes bug #256
2021-11-25 20:59:16 +00:00
Sergio Martins
e67f55af51
Minor: Added Utils::isXCB()
2021-11-25 17:22:58 +00:00
Allen Winter
f1410948f8
Merge branch '1.5'
2021-11-24 16:51:38 -05:00
Allen Winter
30185d5b2a
This is would become version 1.5.1
2021-11-24 16:49:11 -05:00
Allen Winter
9990300006
distro/qt5-kddockwidgets.spec - add BuildRequires for SUSE
...
libqt5-qtbase-private-headers-devel is needed
v1.5.0
2021-11-24 12:32:06 -05:00
Allen Winter
573e82e9eb
update 1.5.0 release date
2021-11-24 12:20:15 -05:00
Allen Winter
07a135a10a
ECMGeneratePriFile.cmake - restore "Fix issues with pri file"
...
commit b81c32b1c9
Author: Jacob Young <jacobly0@users.noreply.github.com >
Date: Mon Dec 28 20:46:28 2020 -0500
2021-11-24 12:14:16 -05:00
Sergio Martins
fc172b66f8
Explain that changing window manager flags isn't portable
...
This restriction comes from Qt itself, not from KDDW.
Relates to bug #256
I will however try to reproduce it
2021-11-24 11:16:36 +00:00
Sergio Martins
2be0d5d1d9
Add a warning about using private headers and ABI compat
2021-11-24 10:04:52 +00:00
Allen Winter
3007b46892
ready for 1.5 release
2021-11-22 08:16:54 -05:00
Allen Winter
1419db80a2
OBS distro fixes
2021-11-19 18:03:22 -05:00
Allen Winter
5376ceec7e
prep for the 1.5.0 release
2021-11-19 15:39:19 -05:00
Allen Winter
d3a3e7502e
appveyor.yml - temporarily disable testing on Windows
...
until I have the time to figure out a proper solution
2021-11-19 12:22:20 -05:00
Allen Winter
50c3f9b899
appveyor.yml - add bin to PATH on Windows
...
to fix 'ctest' on Windows
2021-11-19 11:00:44 -05:00
Allen Winter
8845fae147
appveyor.yml - fix typo
2021-11-19 10:23:55 -05:00
Allen Winter
0c291116b9
appveyor.yml - install mesa on ubuntu
2021-11-19 10:05:07 -05:00
Allen Winter
f0fa0281bf
CMakeLists.txt - fix default install location on Windows
2021-11-19 09:59:56 -05:00
Allen Winter
313a17a96c
appveyor.yml - add Qt to PATH
2021-11-19 08:58:07 -05:00
Allen Winter
9e2b1d3e44
move github CI to appveyor for all platforms
2021-11-19 08:33:43 -05:00