@@ -435,14 +435,14 @@ in a splitter:
435
435
436
436
### `FloatingContainerForceNativeTitleBar` (Linux only)
437
437
438
- Since release 3.6 the library supports native titlebars and window decorations
438
+ Since release 3.6 the library supports native title bars and window decorations
439
439
for floating widgets on Linux (thanks to a user contribution).
440
- Native titlebars and window decorations are supported by most Linux window
440
+ Native title bars and window decorations are supported by most Linux window
441
441
managers, such as Compiz or Xfwm. Some window managers like KWin do not properly
442
442
support this feature. Native floating widgets look better because of the native
443
443
styling and the support all window manager features like snapping to window
444
- borders or maximizing. The library tries to detect the window manager and
445
- activates native window decorations if possible:
444
+ borders or maximizing. The library tries to detect the window manager during
445
+ runtime and activates native window decorations if possible:
446
446
447
447

448
448
@@ -453,13 +453,13 @@ flag, if you set the environment variable `ADS_UseNativeTitle` to 0 or 1.
453
453
### `FloatingContainerForceQWidgetTitleBar` (Linux only)
454
454
455
455
If your window manager (i.e. KWin) does not properly support native floating
456
- windows, the docking library falls back to QWidget based titlebars for
457
- floating widgets .
456
+ windows, the docking library falls back to QWidget based floating widget
457
+ title bars .
458
458
459
459

460
460
461
- If you would like to overwrite autodetection, thne you can activate this flag
462
- to force QWidget based titlebars . You can overwrite autodetection and this
461
+ If you would like to overwrite autodetection, then you can activate this flag
462
+ to force QWidget based title bars . You can overwrite autodetection and this
463
463
flag, if you set the environment variable `ADS_UseNativeTitle` to 0 or 1.
464
464
465
465
## Central Widget
@@ -473,21 +473,24 @@ now supports a central widget.
473
473
In the Advanced Docking System a central widget is a docking widget that is
474
474
neither closable nor movable or floatable. A central widget has no title bar
475
475
and so it is not possible for the user to hide, close or drag the central
476
- widget. Tf there is a central widget, then also the distribution of the sizes
476
+ widget. If there is a central widget, then also the distribution of the sizes
477
477
for the dock widgets around the central widget is different. If there is no
478
- central widget and the main windo is resized, then the available space is
478
+ central widget and the main window is resized, then the available space is
479
479
distributed to all dock widgets. If a central widget exists, then only the
480
480
central widget is resized when resizing the main window. The dock widgets around
481
481
the central widget keep their sizes. The following animation shows this:
482
482
483
483

484
484
485
- To set a centra widget, you just need to call the
485
+ To set a centra widget, you just need to pass your central dock widget
486
+ to the dock manager `setCentralWidget` function:
486
487
487
488
```c++
488
489
auto* CentralDockArea = DockManager->setCentralWidget(CentralDockWidget);
489
490
```
490
491
492
+ See the ` centralwidget ` example to learn how it works.
493
+
491
494
## Styling
492
495
493
496
The Advanced Docking System supports styling via [ Qt Style Sheets] ( https://doc.qt.io/qt-5/stylesheet.html ) . All components like splitters, tabs, buttons, titlebar and
0 commit comments