diff --git a/include/gepetto/gui/mainwindow.hh b/include/gepetto/gui/mainwindow.hh index c522d2c8a59d975759f16730b4fedc9c7a3036c6..618f6d4b56a57e3403e7b938be50bb4b4915339e 100644 --- a/include/gepetto/gui/mainwindow.hh +++ b/include/gepetto/gui/mainwindow.hh @@ -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; diff --git a/src/gui/mainwindow.cc b/src/gui/mainwindow.cc index c3f5cabdf4e8d1a14a33f040f678c50829f26542..879e4a5d6481ccd99461865d913b1cb9d3754b67 100644 --- a/src/gui/mainwindow.cc +++ b/src/gui/mainwindow.cc @@ -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 {