Skip to content

Commit c9a9753

Browse files
Fixed indentationin README.md example
1 parent 8f54dd2 commit c9a9753

File tree

1 file changed

+20
-20
lines changed

1 file changed

+20
-20
lines changed

README.md

Lines changed: 20 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -101,26 +101,26 @@ MainWindow::MainWindow(QWidget *parent) :
101101

102102
// Create the dock manager. Because the parent parameter is a QMainWindow
103103
// 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);
124124
}
125125

126126
MainWindow::~MainWindow()

0 commit comments

Comments
 (0)