mirror of
https://github.com/githubuser0xFFFF/Qt-Advanced-Docking-System.git
synced 2025-04-01 02:42:39 +08:00
Fixed examples/sidebar bug
This commit is contained in:
parent
931719c474
commit
6a1ea6c7de
@ -43,6 +43,7 @@ MainWindow::MainWindow(QWidget *parent) :
|
|||||||
QPlainTextEdit* te = new QPlainTextEdit();
|
QPlainTextEdit* te = new QPlainTextEdit();
|
||||||
te->setPlaceholderText("Please enter your text here into this QPlainTextEdit...");
|
te->setPlaceholderText("Please enter your text here into this QPlainTextEdit...");
|
||||||
DockWidget = new ads::CDockWidget("Editor 1");
|
DockWidget = new ads::CDockWidget("Editor 1");
|
||||||
|
DockWidget->setWidget(te);
|
||||||
ui->menuView->addAction(DockWidget->toggleViewAction());
|
ui->menuView->addAction(DockWidget->toggleViewAction());
|
||||||
m_DockManager->addDockWidget(ads::BottomDockWidgetArea, DockWidget);
|
m_DockManager->addDockWidget(ads::BottomDockWidgetArea, DockWidget);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user