@@ -101,26 +101,26 @@ MainWindow::MainWindow(QWidget *parent) :
101
101
102
102
// Create the dock manager. Because the parent parameter is a QMainWindow
103
103
// the dock manager registers itself as the central widget.
104
- m_DockManager = new ads::CDockManager(this);
105
-
106
- // Create example content label - this can be any application specific
107
- // widget
108
- QLabel* l = new QLabel();
109
- l->setWordWrap(true);
110
- l->setAlignment(Qt::AlignTop | Qt::AlignLeft);
111
- l->setText("Lorem ipsum dolor sit amet, consectetuer adipiscing elit. ");
112
-
113
- // Create a dock widget with the title Label 1 and set the created label
114
- // as the dock widget content
115
- ads::CDockWidget* DockWidget = new ads::CDockWidget("Label 1");
116
- DockWidget->setWidget(l);
117
-
118
- // Add the toggleViewAction of the dock widget to the menu to give
119
- // the user the possibility to show the dock widget if it has been closed
120
- ui->menuView->addAction(DockWidget->toggleViewAction());
121
-
122
- // Add the dock widget to the top dock widget area
123
- m_DockManager->addDockWidget(ads::TopDockWidgetArea, DockWidget);
104
+ m_DockManager = new ads::CDockManager(this);
105
+
106
+ // Create example content label - this can be any application specific
107
+ // widget
108
+ QLabel* l = new QLabel();
109
+ l->setWordWrap(true);
110
+ l->setAlignment(Qt::AlignTop | Qt::AlignLeft);
111
+ l->setText("Lorem ipsum dolor sit amet, consectetuer adipiscing elit. ");
112
+
113
+ // Create a dock widget with the title Label 1 and set the created label
114
+ // as the dock widget content
115
+ ads::CDockWidget* DockWidget = new ads::CDockWidget("Label 1");
116
+ DockWidget->setWidget(l);
117
+
118
+ // Add the toggleViewAction of the dock widget to the menu to give
119
+ // the user the possibility to show the dock widget if it has been closed
120
+ ui->menuView->addAction(DockWidget->toggleViewAction());
121
+
122
+ // Add the dock widget to the top dock widget area
123
+ m_DockManager->addDockWidget(ads::TopDockWidgetArea, DockWidget);
124
124
}
125
125
126
126
MainWindow::~ MainWindow()
0 commit comments