File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -462,7 +462,7 @@ MainWindow::MainWindow(QWidget *parent) :
462
462
// Create the dock manager after the ui is setup. Because the
463
463
// parent parameter is a QMainWindow the dock manager registers
464
464
// itself as the central widget as such the ui must be set up first.
465
- m_DockManager = new ads::CDockManager(this);
465
+ DockManager = new ads::CDockManager(this);
466
466
467
467
// Create example content label - this can be any application specific
468
468
// widget
@@ -473,15 +473,15 @@ MainWindow::MainWindow(QWidget *parent) :
473
473
474
474
// Create a dock widget with the title Label 1 and set the created label
475
475
// as the dock widget content
476
- ads::CDockWidget* DockWidget = new ads::CDockWidget ("Label 1");
476
+ ads::CDockWidget* DockWidget = DockManager->createDockWidget ("Label 1");
477
477
DockWidget->setWidget(l);
478
478
479
479
// Add the toggleViewAction of the dock widget to the menu to give
480
480
// the user the possibility to show the dock widget if it has been closed
481
481
ui->menuView->addAction(DockWidget->toggleViewAction());
482
482
483
483
// Add the dock widget to the top dock widget area
484
- m_DockManager ->addDockWidget(ads::TopDockWidgetArea, DockWidget);
484
+ DockManager ->addDockWidget(ads::TopDockWidgetArea, DockWidget);
485
485
}
486
486
487
487
MainWindow::~ MainWindow()
You can’t perform that action at this time.
0 commit comments