Part: section cut window is not bound to 3d viewer widget

This commit is contained in:
wmayer
2022-02-13 19:33:19 +01:00
parent a43276cce1
commit b0d8ed1bf2
3 changed files with 5 additions and 27 deletions

View File

@@ -663,10 +663,10 @@ void SectionCut::startCutting(bool isInitial)
}
}
SectionCut* SectionCut::makeDockWidget(Gui::View3DInventor* view)
SectionCut* SectionCut::makeDockWidget(QWidget* parent)
{
// embed this dialog into a QDockWidget
SectionCut* sectionCut = new SectionCut(view);
SectionCut* sectionCut = new SectionCut(parent);
Gui::DockWindowManager* pDockMgr = Gui::DockWindowManager::instance();
// the dialog is designed that you can see the tree, thus put it to the right side
QDockWidget* dw = pDockMgr->addDockWindow("Section Cutting", sectionCut, Qt::RightDockWidgetArea);