Skip to content

Commit 6846c96

Browse files
Fixed some documentation typos
1 parent 8fe9461 commit 6846c96

File tree

1 file changed

+14
-11
lines changed

1 file changed

+14
-11
lines changed

doc/user-guide.md

Lines changed: 14 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -435,14 +435,14 @@ in a splitter:
435435
436436
### `FloatingContainerForceNativeTitleBar` (Linux only)
437437
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
439439
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
441441
managers, such as Compiz or Xfwm. Some window managers like KWin do not properly
442442
support this feature. Native floating widgets look better because of the native
443443
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:
446446
447447
![FloatingContainerForceNativeTitleBar true](cfg_flag_FloatingContainerForceNativeTitleBar_true.png)
448448
@@ -453,13 +453,13 @@ flag, if you set the environment variable `ADS_UseNativeTitle` to 0 or 1.
453453
### `FloatingContainerForceQWidgetTitleBar` (Linux only)
454454
455455
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.
458458
459459
![FloatingContainerForceNativeTitleBar false](cfg_flag_FloatingContainerForceNativeTitleBar_false.png)
460460
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
463463
flag, if you set the environment variable `ADS_UseNativeTitle` to 0 or 1.
464464
465465
## Central Widget
@@ -473,21 +473,24 @@ now supports a central widget.
473473
In the Advanced Docking System a central widget is a docking widget that is
474474
neither closable nor movable or floatable. A central widget has no title bar
475475
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
477477
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
479479
distributed to all dock widgets. If a central widget exists, then only the
480480
central widget is resized when resizing the main window. The dock widgets around
481481
the central widget keep their sizes. The following animation shows this:
482482
483483
![Central Widget](central_widget.gif)
484484
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:
486487
487488
```c++
488489
auto* CentralDockArea = DockManager->setCentralWidget(CentralDockWidget);
489490
```
490491

492+
See the `centralwidget` example to learn how it works.
493+
491494
## Styling
492495

493496
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

Comments
 (0)