Commit Graph

4801 Commits

Author SHA1 Message Date
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
Sergio Martins
ef1226187d tests: Test DockWidgetBase::setFloatingWindowFlags() 2022-09-16 18:42:11 +01:00
Sergio Martins
757e57559a Add DockWidgetBase::setFloatingWindowFlags(flags)
So you can specify, per floating window, which flags you want
2022-09-16 18:42:11 +01:00
Sergio Martins
0bef7bc0e9 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.
2022-09-16 18:42:11 +01:00
Sergio Martins
369437cbae Move FloatingWindow::Flag enum to KDDockWidgets namespace level 2022-09-16 18:42:11 +01:00
Sergio Martins
fd35fc26e6 Allow to specify which flags FloatingWindow should use 2022-09-16 18:42:11 +01:00
Sergio Martins
c2208b169e LayoutSaver: Store the floating window flags too 2022-09-16 18:42:11 +01:00
Sergio Martins
ff200950aa Isolate more Config flags in FloatingWindow 2022-09-16 18:42:11 +01:00
Sergio Martins
9916032981 Further isolate access to top-level Config in FloatingWindow
In preparation for per-floatingwindow flags
2022-09-16 18:42:11 +01:00
Sergio Martins
e6ccd9d01c 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.
2022-09-16 18:42:11 +01:00
Allen Winter
3a3fedce3f pre-commit - update hooks versions 2022-09-16 12:55:56 -04:00
Allen Winter
5fdc1a14bc README-bindings.md - minor 2022-09-15 09:42:49 -04:00
Allen Winter
bced0a66c6 README-bindings.md - cleanup and improve 2022-09-15 09:22:57 -04:00