Allen Winter
4c23dff2e0
clang-format set ColumnLimit=0
2022-10-25 09:13:40 -04:00
Allen Winter
4571b4b3d5
end-of-file-fixer
2022-10-25 08:35:12 -04:00
Allen Winter
ece5fe3e4f
LICENSES/GPL-2.0-only.txt - trailing whitespace
2022-10-25 08:34:41 -04:00
Allen Winter
4bce225f43
pre-commit - autoupdate, and markdownlint config
2022-10-25 08:34:09 -04:00
Sergio Martins
fd9858f1aa
Windows: Fix artifacts when moving window to another screen
...
We had a workaround for this Qt bug, but Window::screenChanged
wasn't being emitted, since Window is a temporary object, not the
actual QWindow.
Fix by connecting directly to QWindow
Fixes issue #320
2022-10-21 15:58:47 +01:00
Sergio Martins
cb5a42ef2e
tests: Fix memory leak
...
The root3 wasn't being put inside anything
2022-10-17 14:37:33 +01:00
Sergio Martins
437bc31aca
Fix memory leak in a test
2022-10-17 13:48:38 +01:00
Sergio Martins
7597bb70a6
Fix memory leak
...
For consistency, all views create a controller, even if they
don't need it. But these dummy controllers weren't being deleted.
2022-10-17 12:24:11 +01:00
Sergio Martins
b6bbaf9e53
vscode: Add launcher for qtquick_customtitlebar
2022-10-10 21:51:02 +01:00
Sergio Martins
70b566b1b8
Also emit FloatingWindow::numDockWidgetsChanged() when restoring layout
2022-10-10 21:50:23 +01:00
Sergio Martins
8adba89a83
qtquick: Fix crash when mouse receiver gets deleted
...
Happened when double clicking a tab
2022-10-07 05:43:11 +01:00
Sergio Martins
04c069bf1b
qtquick: Emit tabBarQmlItemChanged()
...
Not very important, as it's not read by QML.
Maybe removing the Q_PROPERTY and adding an invokable setter
would be better
Fixes bug #318
2022-10-05 11:44:48 +01:00
Sergio Martins
edb06f2543
qtquick|example: Rename tabBar to tabBarRow for readability
...
There's other things named tabbar already
2022-10-04 10:01:11 +01:00
Sergio Martins
de21f60910
Fix typo when emitting hoveredTabIndexChanged
...
Also added an example on how to style hovered tabs differently.
Fixes #317
2022-10-04 09:58:01 +01:00
Sergio Martins
f110afd1d0
header hygiene for Screen.h
...
KDDockWidgets_p.h is not installed, and not needed here anyway
2022-10-04 09:32:27 +01:00
Sergio Martins
84052f6db0
qtquick: Fix numDockWidgetsChanged() not being emitted sometimes
...
For FloatingWindow there's 2 levels of nesting. The outter
titlebar takes care of the nested groups, and then each group
as a title bar as well.
FloatingWindow now detects with inner tabbars get dock widgets
added/removed.
2022-10-03 17:49:07 +01:00
Sergio Martins
2b8b069396
minor readability improvement
2022-10-03 17:31:36 +01:00
Sergio Martins
1bed9c8a62
tests: Manually test that LayoutSaver triggers numDockWidgetsChanged
2022-10-03 17:23:29 +01:00
Sergio Martins
7eddab06d2
vscode: Add a launcher for tst_qtquick
2022-10-03 17:13:53 +01:00
Sergio Martins
66a572f177
tests: Add a test for TitleBar::tst_titlebarNumDockWidgetsChanged()
2022-10-03 17:13:06 +01:00
Sergio Martins
1ee12f5b90
qtquick: Add a
2022-10-03 17:09:41 +01:00
Sergio Martins
b1ff6bf11b
qtquick: Add TabBar_qtquick::hoveredTabIndexChanged() signal
...
So users can style them differently in QML.
For issue #317
2022-10-03 15:15:36 +01:00
Sergio Martins
d8eac5c04b
qtquick: MouseEventRedirector now receives less generic types
...
QQuickItem and View instead of QObject
2022-10-03 15:01:44 +01:00
Sergio Martins
8c0b76074c
flutter: TitleBars now show the real title
2022-10-03 13:42:30 +01:00
Sergio Martins
498a0627fd
flutter: Regenerate bindings
2022-10-03 13:41:33 +01:00
Sergio Martins
04df3d5bab
flutter: add bindings for View.h
...
It's abstract but shiboken's API extractor doesn't know
since all the virtual methods are returning unknown types (shared pointers),
so give it some help.
2022-09-30 18:28:37 +01:00
pre-commit-ci[bot]
2a53aa8fa2
[pre-commit.ci] pre-commit autoupdate
...
updates:
- [github.com/pre-commit/mirrors-clang-format: v14.0.0 → v14.0.6](https://github.com/pre-commit/mirrors-clang-format/compare/v14.0.0...v14.0.6 )
- [github.com/PyCQA/pylint: v2.15.2 → v2.15.3](https://github.com/PyCQA/pylint/compare/v2.15.2...v2.15.3 )
2022-09-28 20:14:09 +01:00
Sergio Martins
0c92b1dd6c
qtquick: Added TitleBar_qtquick::numDockWidgetsChanged() signal
...
In case the custom titlebar wants to do something with it.
2022-09-28 20:01:14 +01:00
Sergio Martins
e265a33b4c
Merge branch '1.7' into 2.0
...
-s ours merge
2022-09-19 13:51:48 +01:00
Sergio Martins
75526982f3
Honour FloatingWindowFlag::DontUseParentForFloatingWindows
...
(cherry-picked from commit 40d57e5000 )
2022-09-19 08:46:33 +01:00
Sergio Martins
9c4b53faa6
Allow to specify Qt::Tool or Qt::Window per floating window
...
(cherry-picked from commit 7ac6a31512 )
2022-09-19 08:44:42 +01:00
Sergio Martins
18d0875bde
Add DockWidget::setFloatingWindowFlags(flags)
...
So you can specify, per floating window, which flags you want
(cherry-picked from commit 757e57559a )
2022-09-19 08:40:08 +01:00
Sergio Martins
d9afb45c05
Load FloatingWindowFlags from disk with LayoutSaver
...
If a user specified different flags for a certain FloatingWindow,
they'll be reloaded when restored with LayoutSaver as well.
(cherry-picked from commit 0bef7bc0e9 )
2022-09-19 08:29:39 +01:00
Sergio Martins
c52ecb65b6
Move FloatingWindow::Flag enum to KDDockWidgets namespace level
2022-09-19 04:05:01 +01:00
Sergio Martins
3f34d12805
Allow to specify which flags FloatingWindow should use
...
(cherry-picked from commit fd35fc26e6 )
2022-09-19 04:01:16 +01:00
Sergio Martins
e01a332386
LayoutSaver: Store the floating window flags too
...
(cherry-picked from commit c2208b169e )
2022-09-19 03:56:27 +01:00
Sergio Martins
0e66f8a368
Isolate more Config flags in FloatingWindow
...
(cherry-picked from commit ff200950aa )
2022-09-19 03:50:38 +01:00
Sergio Martins
6241eeca66
Further isolate access to top-level Config in FloatingWindow
...
In preparation for per-floatingwindow flags
(cherry-picked from commit 9916032981 )
2022-09-19 03:43:40 +01:00
Sergio Martins
d54d417c09
Move TitleBar::supportsMinimize|MaximizeButton into FloatingWindow
...
Just a minor refactoring so FloatingWindow can save it during serialization.
So we can support per-floating window settings.
(cherry-picked from commit e6ccd9d01c )
2022-09-19 03:34:48 +01:00
Sergio Martins
e8814b102a
buildsystem required CMake v3.12.0 or higher
...
(cherry-picked from commit c8e542cabf )
2022-09-19 01:47:58 +01:00
Sergio Martins
aca80b186e
cmake: Allow to build with Qt 6.2, since it's the last LTS
...
(cherry picked from commit 3c2cb67bcd )
2022-09-19 01:44:49 +01:00
Sergio Martins
34d614ab37
Update ChangeLog
2022-09-19 01:42:15 +01:00
Sergio Martins
c91e5099e0
cmake: Remove unity builds from cmake presets
...
The speed is small since KDDW is small as well.
The burdon on maintaining it isn't worth the speedup.
Fixes static preset failing.
(cherry-picked from commit f5eb97bd26 )
2022-09-19 01:36:14 +01:00
Sergio Martins
4ccb7df73c
README: Mention that stable branch is 1.6 now
2022-09-19 01:34:22 +01:00
Sergio Martins
e98633b664
Remove unused variable, which fixes Windows build
2022-09-17 11:35:31 +01:00
Sergio Martins
290c0815e8
Update Changelog regarding issue #314
2022-09-16 18:42:11 +01:00
Sergio Martins
40d57e5000
Honour FloatingWindowFlag::DontUseParentForFloatingWindows
2022-09-16 18:42:11 +01:00
Sergio Martins
f2218f8ff3
Add Frame::requestedFloatingWindowFlags()
...
Just so we can share this bit of code without duplicating it
2022-09-16 18:42:11 +01:00
Sergio Martins
c070a11312
Remove FloatingWindowFlag::DontUseQtToolWindowsForFloatingWindows
...
UseQtTool and UseQtWindow have the same effect
2022-09-16 18:42:11 +01:00
Sergio Martins
7ac6a31512
Allow to specify Qt::Tool or Qt::Window per floating window
2022-09-16 18:42:11 +01:00