This method was used nowhere and has zero benefit. Committing now.
Abdel.
Index: GuiImplementation.C =================================================================== --- GuiImplementation.C (revision 14623) +++ GuiImplementation.C (working copy) @@ -82,7 +82,7 @@ work_areas_[id]->setBufferView(buffer_views_[id].get()); view->setWorkArea(work_areas_[id].get()); - view->mainWidget()->setCentralWidget(work_areas_[id].get()); + view->setCentralWidget(work_areas_[id].get()); return id; } Index: GuiView.C =================================================================== --- GuiView.C (revision 14623) +++ GuiView.C (working copy) @@ -73,8 +73,6 @@ GuiView::GuiView(Gui & owner) : QMainWindow(), LyXView(owner), commandbuffer_(0) { - mainWidget_ = this; - // setToolButtonStyle(Qt::ToolButtonIconOnly); // setIconSize(QSize(12,12)); @@ -249,15 +247,6 @@ QApplication::restoreOverrideCursor(); } - -QMainWindow* GuiView::mainWidget() -{ - return mainWidget_; -} - -QMainWindow* GuiView::mainWidget_ = 0; - - } // namespace frontend } // namespace lyx Index: GuiView.h =================================================================== --- GuiView.h (revision 14623) +++ GuiView.h (working copy) @@ -78,9 +78,6 @@ /// returns true if this view has the focus. virtual bool hasFocus() const; - /// - static QMainWindow* mainWidget(); - public Q_SLOTS: /// idle timeout void update_view_state_qt(); @@ -115,9 +112,6 @@ QCommandBuffer * commandbuffer_; /// - static QMainWindow* mainWidget_; - - /// void updateFloatingGeometry(); /// QRect floatingGeometry_;