mirror of
https://github.com/githubuser0xFFFF/Qt-Advanced-Docking-System.git
synced 2024-12-24 23:31:32 +08:00
Tidy/doc updates (#410)
* minor updates to clarify when the dock manager should be created * fixed typos
This commit is contained in:
parent
78a4166e42
commit
823887daf8
@ -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
|
||||||
|
@ -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);
|
||||||
|
Loading…
Reference in New Issue
Block a user