Skip to content
Snippets Groups Projects
Commit 4806d4f3 authored by Joseph Mirabel's avatar Joseph Mirabel Committed by Joseph Mirabel
Browse files

Remove MainWindow::centralWidget

parent 3c1e788b
No related branches found
No related tags found
No related merge requests found
......@@ -86,10 +86,6 @@ namespace gepetto {
return selectionHandler_;
}
/// Get the central widget.
/// \deprecated Use \ref osgWindows instead
OSGWidget* centralWidget() const GEPETTO_VIEWER_CORBA_DEPRECATED;
/// Get the list of windows.
QList <OSGWidget*> osgWindows () const;
......
......@@ -151,11 +151,6 @@ namespace gepetto {
return osgViewerManagers_;
}
OSGWidget *MainWindow::centralWidget() const
{
return centralWidget_;
}
BodyTreeWidget *MainWindow::bodyTree() const
{
return ui_->bodyTreeContent;
......@@ -253,7 +248,8 @@ namespace gepetto {
emit refresh ();
}
void MainWindow::createDefaultView() {
void MainWindow::createDefaultView()
{
std::stringstream ss; ss << "hpp_gui_window_" << osgWindows_.size();
createView (ss.str());
}
......@@ -408,7 +404,7 @@ namespace gepetto {
void MainWindow::dockVisibilityChanged(bool visible)
{
QWidget* cw = QMainWindow::centralWidget();
QWidget* cw = centralWidget();
if (visible && cw->isVisible())
cw->hide();
else {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment