Commit Graph

3661 Commits

Author SHA1 Message Date
Sergio Martins
59a81fbe62 Fix another mistake checking for Config::Flag_AutoHideSupport 2023-05-16 10:01:41 +01:00
Sergio Martins
0fe194769d Update Changelog 2023-05-16 09:40:41 +01:00
Sergio Martins
5861607df1 Fix "pin" button appearing when using Flag_TitleBarNoFloatButton
Fixes issue #359
2023-05-16 09:37:46 +01:00
Allen Winter
e7c9a20752 python/CMakeLists.txt - improve PYTHON_BINDINGS_INSTALL_PREFIX
If `cmake --install. --prefix=/some/path` is specified that
install prefix is taken into account for the bindings too.

Also, on Windows, don't install under a 'pythonX.Y' hierarchy.

fixes: #361
2023-05-15 12:16:52 -04:00
Allen Winter
dba4d649ed README-bindings.md - talk about Python3_EXECUTABLE 2023-05-15 08:56:10 -04:00
Allen Winter
ede69197ed This is v1.7.1 now 2023-05-03 16:07:36 -04:00
Allen Winter
70fd6f0770 Prep for release 1.7.0 2023-05-03 15:38:49 -04:00
Sergio Martins
c91c28748e Fix a detachment found by clazy 2023-05-03 20:38:33 +01:00
Renato Araujo Oliveira Filho
1275327163 More fixes for MacOS build 2023-05-02 21:26:39 +01:00
Renato Araujo Oliveira Filho
c3751142c0 Fix MacOs build
Avoid use empty path for custom dir
2023-05-02 19:37:27 +01:00
Allen Winter
c603593552 cmake/KDAB - sync to upstream 2023-05-02 11:10:53 -04:00
Kevin Funk
ac6ed8e929 cmake: Minor: Use CONFIG mode where applicable 2023-04-06 12:12:29 +02:00
Allen Winter
4f7175c446 .reuse/dep5 - add vscode.code-workspace 2023-03-25 21:28:05 -04:00
Sergio Martins
832736c1e5 Rename code.dev-qtwidgets.code-workspace to vscode.code-workspace 2023-03-25 13:00:14 +00:00
Sergio Martins
c5cbe4064a tests: Remove tests_launcher
It was a way to speed up test execution, but at the expense of
being weird and non-standard. It would block tst_docks from appearing
as qttest with children, as tst_docks wasn't passed to add_test.

Solution will be to instead split tst_docks into smaller executables,
which was done in 2.0 branch already.
2023-03-25 12:54:15 +00:00
Sergio Martins
68b7c0b1a9 tests: Remove old fuzzer
Not worth maintaining, as the layouting code is mature now.
Was useful when we had flaky code for layouting, but that has since
been rewritten.

Reducing maintenance burden.
2023-03-25 12:48:52 +00:00
Sergio Martins
285574205c README-QtQuick: Redirect to 2.0 branch
QtQuick in 1.7 isn't receiving any new features or fixes
2023-03-25 12:34:17 +00:00
Allen Winter
dbf96091f8 .pre-commit-config.yaml - autoupdate 2023-03-25 08:11:25 -04:00
Allen Winter
9c03da23a6 python/examples - autopep8 2023-03-25 08:08:12 -04:00
Allen Winter
ea08429b23 src/DockWidgetBase.h - codespell 2023-03-25 08:05:38 -04:00
Allen Winter
ad1a2df8af README-QtQuick.md - markdownlint fix for long lines 2023-03-25 08:04:31 -04:00
Sergio Martins
af3fd6b296 vscode: Use "current" debug targets
(amends previous commit, forgot to save)
2023-03-25 11:21:42 +00:00
Sergio Martins
ae461f947f vscode: Use "current" debug targets
This allows to remove hardcoded build directories and remove the
Qt6 workspace file.
2023-03-24 20:25:37 +00:00
Sergio Martins
f24a04252b Add a prophylactic against a crash
Crash seen in the wild. Can't reproduce, but could happen if the deletion
was triggered by some external event during a drag.

We're using a QPointer already, so it even makes sense.
2023-03-17 10:58:22 +00:00
Sergio Martins
dd9837c3f1 Fix assert when saving mdi layout
Since the layout is nested, we need to look further for the main window.

I don't know however if restoring layouts even works with MDI.
Needs to be tested and implemented.
2023-03-14 23:10:14 +00:00
Sergio Martins
b6beb3d244 Add test for #352
Commented out, since we can't use an XFAIL, as it crashes
2023-03-14 23:00:54 +00:00
Sergio Martins
1a46823b03 Don't crash when using LayoutSaver with MDI
It's not supported but it shouldn't crash.
For #352, leaving it open still, as the reporter actually experiences
an assert, not a segfault. To be investigated further
2023-03-14 22:54:46 +00:00
Sergio Martins
4d50376ccf Fix reading floating window flags from >=1.6 layouts
1.7 introduced per-floating-window "flags" in the saved layouts. When
that value is not present in the saved layout, we need to fallback from
reading from Config global settings
2023-03-10 17:16:10 +00:00
Sergio Martins
59f7280d59 Add test for loading flags from layouts from 1.6
1.7 now has flags per floating window. When loading a layout from
1.6 we need however to fallback to the global Config::flags()
2023-03-10 17:10:37 +00:00
Sergio Martins
683dd68754 Update Changelog
Lot's of stuff was missing
2023-03-08 22:33:21 +00:00
Sergio Martins
1b33da8b44 Windows: Don't resize diagonally when at least 1 dimension is fixed
If width is fixed and height is not, then when using the corner resize
only width can be changed (and same for fixed height).

Fixes #345
2023-03-06 19:56:21 +00:00
Sergio Martins
f6d9ac5606 debug: Allow to print flags
For issue #345
2023-03-03 16:17:29 +00:00
Sergio Martins
f08d39ecc8 Fix clazy warning about returning false in event filter
Use the base class instead
2023-02-28 12:34:10 +00:00
Sergio Martins
ee5e004ed2 Fix some icons not appearing in title bar
Looks like QIcon was being added into the cache after it was already
moved from.
2023-02-27 22:50:25 +00:00
Sergio Martins
c744291d33 README: Explain that QtQuick does not work on EGLFS
For issue #342
2023-02-15 13:05:31 +00:00
Allen Winter
a6e0de9db9 .pre-commit-config.yaml - disable pylint on precommit.ci 2023-02-10 10:38:42 -05:00
Milian Wolff
0ad83ea1b4 Allow restoring layouts without touching floating dock widgets
The current behavior is great for when we want to apply an older
stored state to a different screen configuration. There,
scaling/shrinking the floating docks makes sense.

But we now also want to have more fine grained window
configurations and save/restore them more frequently. In those
situations, the screen config is the same, but the mainwindow may
or may not be full screen when the state was saved. In this case
we don't want to touch the size of the floating docks - most notably
we don't want to resize a "nearly fullscreen" floating window from
a state with a small main window when loading it into a state with
a fullscreen mainwindow - in such situations the floating window would
get resized beyond the available screen space!

Preventing the latter is probably required as a safety measure
independently of this patch, for situations where the relative
resizing is desired. This is outside the scope of this patch.
2023-02-10 15:13:09 +00:00
Sergio Martins
fdcdaae1f1 Fix build with C++11
initialized lambda captures is a C++14 extension
2023-02-10 14:53:42 +00:00
Sergio Martins
af455bb37e examples: Show how to hide dock indicators when ctrl is pressed
Fixes issue #334 and issue #337.
Won't add this directly into the library, as each project
has different requirements regarding this.

It's easy to do in application code though.
2023-02-07 23:51:20 +00:00
Sergio Martins
57aded2a67 Fix setDropIndicatorsInhibited(false) not showing drop indicators
It required the user to move the mouse, which was OK but we can do
better.

Now, KDDW will automaticallt re-show the drop indicators if we're in
the middle of a drag operation.

Required for issue #334 and issue #337
2023-02-07 21:58:37 +00:00
Aleš Petrovački
31b0ad8d7d Update Readme with new image on top of it 2023-02-06 18:26:02 +01:00
Aleš Petrovački
3ae7f4ac21 Add logo to KDDockWidgets git repo 2023-02-06 18:22:41 +01:00
Sergio Martins
5b3fb35679 cmake: Add a preset for static Qt6 builds 2023-02-03 19:04:52 +00:00
Sergio Martins
c39486ce84 vscode: Remove ms C++ extension settings
I'm on clangd instead.
I could leave them there, but no idea if they are correct.
Once we have a developer using the MS extension then he's free
to maintain the options.
2023-02-01 17:16:34 +00:00
Sergio Martins
e7bc93a69f Fix relayouting when dock widget is deleted directly
Usually, it's closed. "delete" isn't very well tested.
When it's deleted the container item becomes empty, so needs
to be resized to QSize(0,0) as well.

There's already a codepath for that but was too restrictive.
It now handles that case too.

Fixes #336
2023-01-27 18:09:34 +00:00
Sergio Martins
f2c3fe6910 tests: Add an XFAIL for issue #336 2023-01-27 16:23:36 +00:00
Sergio Martins
2326874be7 Cache TitleBar icons
Minor performance improvement. Detected by Milian when profiling.
2023-01-27 14:36:05 +00:00
Mauro Persano
1fc57b02b3 Save side bar overlay geometry when frame is resized
Previously we were updating the side bar overlay geometry only when the
side bar was closed. So if we open the side bar overlay, resize it, and
save/restore the layout state, we won't get the last side bar size.

Save it every time the frame is resized.
2023-01-27 12:19:26 +00:00
Mauro Persano
c55ce478df Serialize dock overlayed geometries
Otherwise the size of auto-hidden dock widgets won't get restored.
2023-01-27 12:19:26 +00:00
Sergio Martins
b0dfbc4486 Fix Werror build regarding unused variable 2023-01-26 22:57:39 +00:00