Update README.md

This commit is contained in:
githubuser0xFFFF 2018-12-14 23:18:15 +01:00 committed by GitHub
parent b19cc98c84
commit b38919e909
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -100,18 +100,18 @@ MainWindow::MainWindow(QWidget *parent) :
ui->setupUi(this);
// Create the dock manager
m_DockManager = new ads::CDockManager(this);
m_DockManager = new ads::CDockManager(this);
QLabel* l = new QLabel();
l->setWordWrap(true);
l->setAlignment(Qt::AlignTop | Qt::AlignLeft);
l->setText("Lorem ipsum dolor sit amet, consectetuer adipiscing elit. ");
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
ads::CDockWidget* DockWidget = new ads::CDockWidget("Label 1");
DockWidget->setWidget(l);
ui->menuView->addAction(DockWidget->toggleViewAction());
m_DockManager->addDockWidget(ads::TopDockWidgetArea, DockWidget);
// Create a dock widget with the title Label 1
ads::CDockWidget* DockWidget = new ads::CDockWidget("Label 1");
DockWidget->setWidget(l);
ui->menuView->addAction(DockWidget->toggleViewAction());
m_DockManager->addDockWidget(ads::TopDockWidgetArea, DockWidget);
}
MainWindow::~MainWindow()