Tidy/doc updates (#410)

* minor updates to clarify when the dock manager should be created

* fixed typos
This commit is contained in:
ARSanderson 2022-04-11 23:58:18 -06:00 committed by GitHub
parent 78a4166e42
commit 823887daf8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 7 additions and 5 deletions

View File

@ -286,8 +286,9 @@ MainWindow::MainWindow(QWidget *parent) :
{ {
ui->setupUi(this); ui->setupUi(this);
// Create the dock manager. Because the parent parameter is a QMainWindow // Create the dock manager after the ui is setup. Because the
// the dock manager registers itself as the central widget. // parent parameter is a QMainWindow the dock manager registers
// itself as the central widget as such the ui must be set up first.
m_DockManager = new ads::CDockManager(this); m_DockManager = new ads::CDockManager(this);
// Create example content label - this can be any application specific // Create example content label - this can be any application specific

View File

@ -52,9 +52,10 @@ configuration will be explained in detail in the following sections.
### Setting Configuration Flags ### Setting Configuration Flags
You should set the configuration flags before you create the dock manager You must set the configuration flags before creating the dock manager
instance. That means, setting the configurations flags is the first thing instance otherwise the manager will not be created correctly and will
you do, if you use the library. crash upon being created. That means, setting the configurations flags
is the first thing you must do, if you use the library.
```c++ ```c++
CDockManager::setConfigFlags(CDockManager::DefaultOpaqueConfig); CDockManager::setConfigFlags(CDockManager::DefaultOpaqueConfig);