From c9a97534a8c3f74e289954c1b12dfaa85f17e4b6 Mon Sep 17 00:00:00 2001 From: Uwe Kindler Date: Thu, 20 Dec 2018 09:20:17 +0100 Subject: [PATCH] Fixed indentationin README.md example --- README.md | 32 ++++++++++++++++---------------- 1 file changed, 16 insertions(+), 16 deletions(-) diff --git a/README.md b/README.md index c24f440..5fdaedf 100644 --- a/README.md +++ b/README.md @@ -101,26 +101,26 @@ MainWindow::MainWindow(QWidget *parent) : // Create the dock manager. Because the parent parameter is a QMainWindow // the dock manager registers itself as the central widget. - m_DockManager = new ads::CDockManager(this); + m_DockManager = new ads::CDockManager(this); - // Create example content label - this can be any application specific - // widget - QLabel* l = new QLabel(); - l->setWordWrap(true); - l->setAlignment(Qt::AlignTop | Qt::AlignLeft); - l->setText("Lorem ipsum dolor sit amet, consectetuer adipiscing elit. "); + // Create example content label - this can be any application specific + // widget + QLabel* l = new QLabel(); + l->setWordWrap(true); + l->setAlignment(Qt::AlignTop | Qt::AlignLeft); + l->setText("Lorem ipsum dolor sit amet, consectetuer adipiscing elit. "); - // Create a dock widget with the title Label 1 and set the created label - // as the dock widget content - ads::CDockWidget* DockWidget = new ads::CDockWidget("Label 1"); - DockWidget->setWidget(l); + // Create a dock widget with the title Label 1 and set the created label + // as the dock widget content + ads::CDockWidget* DockWidget = new ads::CDockWidget("Label 1"); + DockWidget->setWidget(l); - // Add the toggleViewAction of the dock widget to the menu to give - // the user the possibility to show the dock widget if it has been closed - ui->menuView->addAction(DockWidget->toggleViewAction()); + // Add the toggleViewAction of the dock widget to the menu to give + // the user the possibility to show the dock widget if it has been closed + ui->menuView->addAction(DockWidget->toggleViewAction()); - // Add the dock widget to the top dock widget area - m_DockManager->addDockWidget(ads::TopDockWidgetArea, DockWidget); + // Add the dock widget to the top dock widget area + m_DockManager->addDockWidget(ads::TopDockWidgetArea, DockWidget); } MainWindow::~MainWindow()