Sergio Martins
982904e2ba
Pass the DropArea to setDropIndicatorAllowedFunc() too
...
So the lambda can have more advanced usage and inspect the
target layout before allowing or disallowing the drop.
For our use case, we want to limit max 3 dock widgets side by side,
for example.
2022-06-02 15:19:01 +01:00
Allen Winter
f3da0f0547
various - fix some misspellings
2022-04-14 12:27:29 -04:00
Sergio Martins
21765efbac
example: Added --blocks-close-event
...
Makes dock widget #0 reject the close event, meaning it won't close.
2022-03-09 12:46:20 +00:00
Sergio Martins
54bf24d5d4
Added Config::setDropIndicatorAllowedFunc()
2022-02-11 19:49:23 +00:00
Allen Winter
93e60a743e
update copyright year
2022-01-20 08:05:26 -05:00
Allen Winter
4dd66969af
examples/dockwidgets/MyTitleBar_CSS.h - add multiple include guard
2021-09-28 16:36:55 -04:00
Waqar Ahmed
f6f772edc5
Fix leaks in kddockwidgets_example
2021-09-17 11:27:09 +01:00
Waqar Ahmed
7af2095f2f
Allow switching tabs via context menu in the tabs area
...
This change allows you to switch tabs via the context menu. The context
menu only shows up if you click on the empty area beside the tabs.
Can be tested with `--allow-switch-tabs-via-menu` option in the example.
Fixes #232
Signed-off-by: Waqar Ahmed <waqar.ahmed@kdab.com >
2021-09-11 12:46:23 +01:00
Sergio Martins
b5c11ce199
example: Add an example about using stylesheets
2021-09-08 23:14:47 +01:00
Sergio Martins
1ccdf445eb
Introduce MainWindowOption_HasCentralWidget
...
You can now set an arbitrary widget as "central widget".
It's similar to MainWindowOption_HasCentralFrame, however the widget
won't be detachable and won't show tabs.
Similar to what you'd get with QMainWindow central widget concept.
Example:
QWidget *myWidget = new MyWidget();
mainWindow->setPersistentCentralWidget(myWidget);
Fixes #225
2021-08-30 10:12:46 +01:00
Allen Winter
22a709a39e
fix more misspellings
2021-07-15 10:14:04 -04:00
Sergio Martins
e1578436d0
Added Flag_ShowButtonsOnTabBarIfTitleBarHidden
2021-07-01 18:08:41 +01:00
Sergio Martins
701df72db6
Remove some ifdefs regarding 5.9
...
The one missing QT_VERSION_CHECK was even wrong and triggering
even with Qt 5.15.
2021-07-01 16:54:44 +01:00
Sergio Martins
cd0f2f4e33
Introduced Config::setDropIndicatorsInhibited(bool)
...
Allows you to disable support for drop indicators while dragging
2021-05-18 18:00:04 +01:00
Sergio Martins
7475c7cc71
Remove unneeded include
2021-04-28 21:15:08 +01:00
Sergio Martins
7958eeeded
Fully qualify LayoutSaver_p.h includes
...
Now that it's installed
2021-04-28 21:13:44 +01:00
Sergio Martins
a4d03c1514
Add a mdi-example
...
Don't want the main example to be too complex
2021-02-13 12:01:01 +00:00
Sergio Martins
8dca2e346c
Add experimental MDI support
2021-02-09 19:25:28 +00:00
Allen Winter
2177336d65
minor spelling
2021-02-07 06:56:49 -05:00
Sergio Martins
2834532b5f
example: Add a keyboard shortcut to toggle dock widgets visiblity
2021-01-21 16:22:43 +00:00
Sergio Martins
54314273a0
Merge branch '1.2'
2021-01-18 19:40:18 +00:00
Sergio Martins
de068dc6ff
Use less relative includes, some of them were wrong
...
The example now includes them, so we can detect build failures
if they get wrong again
Fixes #140
2021-01-18 18:57:15 +00:00
Sergio Martins
e33766a4fa
examples: Illustrate Config::Flag_CloseOnlyCurrentTab
2021-01-16 13:19:37 +00:00
Sergio Martins
e0e6f55868
Introduce DockWidgetBase::LayoutSaverOptions enum
...
The first enumerator is "Skip", meaning the dock widget won't
be affected by save/restore. It won't disappear while restoring,
and won't be shown if already hidden. (only applies to floating widgets)
2021-01-11 23:33:32 +00:00
Allen Winter
875544a449
Merge branch '1.2'
2021-01-02 09:32:20 -05:00
Allen Winter
a2f4c972a6
update copyright year
2021-01-02 09:27:50 -05:00
Sergio Martins
50e1285839
Move more internal enumerators into the internal enum
...
the public enum is now clean
2020-12-28 14:36:42 +00:00
Sergio Martins
cd859d6725
Fix a bunch of clazy warnings
2020-12-22 17:01:50 +00:00
Sergio Martins
f8d0ffe7ba
Fix a few clazy warnings
2020-12-22 16:02:55 +00:00
Sergio Martins
1dae128511
Fix the static build
...
The other library qrc is only needed for QtQuick
2020-12-16 11:41:15 +00:00
Sergio Martins
ceb796d807
qt6: Don't set the HDPI attributes
...
They don't do anything on Qt6, but warn.
2020-12-09 12:23:17 +00:00
Sergio Martins
d7242f17b7
examples: Add AUTORCC
...
Fixes standalone examples not showing images
2020-12-08 22:36:23 +00:00
Sergio Martins
9f604829dd
qt6: Use AUTORCC instead of qt5_add_resources
...
As this works with both Qt5 and Qt6
2020-12-08 18:11:34 +00:00
Sergio Martins
b4e7b97646
examples: Fix non-developer build
2020-11-30 12:25:29 +00:00
Sergio Martins
a5c65ae039
Introduce NullIndicators and a Config option for it
...
Mostly for debugging purposes, but also useful if anyone doesn't
want to display indicators
2020-11-28 14:11:39 +00:00
Sergio Martins
5c055e0b8d
examples: Add a flag to disable aero-snap
...
For development/debugging purposes only
2020-11-28 00:39:30 +00:00
Sergio Martins
fad81d595a
qtquick: Remove some dependencies to QApplication
2020-11-26 19:31:32 +00:00
Sergio Martins
929aabdc0d
example: Add --native-title-bar
...
Behind developer mode for now
2020-11-23 21:37:59 +00:00
Sergio Martins
50d1e75709
Fully scope the qrc resource files
...
So they don't clash when KDDW is a static library
2020-11-17 11:33:22 +00:00
Sergio Martins
52cf53ce5c
example: init resources if static
...
Fixes title bar not having icons on WASM
For issue #100
2020-11-13 18:33:13 +00:00
Sergio Martins
f4d9a96ddb
Added Config::Flag_KeepAboveIfNotUtilityWindow
...
Which sets Qt::WindowStaysOnTopHint for floating windows.
Usually unneeded, as floating windows are Qt::Tool with a transient
parent, but in case you're using Flag_DontUseUtilityFloatingWindows
then you might want (or not) to keep them above.
2020-11-05 12:11:48 +00:00
Sergio Martins
819725351a
Fix -Wweak-vtables warnings
2020-10-14 14:55:28 +01:00
Sergio Martins
1458da92d9
minimal example: Use fusion too
...
Looks better in general
2020-09-29 18:10:12 +01:00
Sergio Martins
6a46744073
Make Flag_AutoHideSupport public
...
Ready to be tested by the public
2020-09-21 00:19:20 +01:00
Sergio Martins
e1085fb770
Add experimental support for minimization to side-bar
...
Auto-hide not working yet. Just minimization.
Internal for now. Will be public once finished.
2020-09-18 18:35:41 +01:00
Sergio Martins
e92ef472b3
Floating windows now support a minimize button
...
Introduced Flag_TitleBarHasMinimizeButton for it.
It implies Flag_DontUseUtilityFloatingWindows too, since Qt::Tool
don't appear in the task bar.
example: kddockwidgets_example -k
2020-09-17 21:46:28 +01:00
Sergio Martins
beb2128804
example: Added --no-aero-snap for debugging purposes
2020-09-14 22:28:15 +01:00
Sergio Martins
87ba2e0ee7
example: Add option to test combinations of Qt::Tool and parent
...
for internal testing
2020-09-13 13:30:55 +01:00
Sergio Martins
eaeed567f3
Don't have a parent window when using Qt::Window
...
Otherwise Qt::Window behaves like Qt::Tool, on Windows
2020-09-13 13:22:48 +01:00
Sergio Martins
2d2c8524ee
Introduce Config::Flag_DontUseUtilityWindowsForFloating
...
Controls whether windows get Qt::Tool or not
2020-09-13 12:24:26 +01:00