* GuiView:

- mainWidget(): deleted

* GuiImplementation.C: adapted to above change.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@14624 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
Abdelrazak Younes 2006-08-12 16:25:51 +00:00
parent 8e836c60d8
commit 58d136aa60
3 changed files with 1 additions and 18 deletions

View File

@ -82,7 +82,7 @@ int GuiImplementation::newWorkArea(unsigned int w, unsigned int h, int view_id)
work_areas_[id]->setBufferView(buffer_views_[id].get()); work_areas_[id]->setBufferView(buffer_views_[id].get());
view->setWorkArea(work_areas_[id].get()); view->setWorkArea(work_areas_[id].get());
view->mainWidget()->setCentralWidget(work_areas_[id].get()); view->setCentralWidget(work_areas_[id].get());
return id; return id;
} }

View File

@ -73,8 +73,6 @@ int const statusbar_timer_value = 3000;
GuiView::GuiView(Gui & owner) GuiView::GuiView(Gui & owner)
: QMainWindow(), LyXView(owner), commandbuffer_(0) : QMainWindow(), LyXView(owner), commandbuffer_(0)
{ {
mainWidget_ = this;
// setToolButtonStyle(Qt::ToolButtonIconOnly); // setToolButtonStyle(Qt::ToolButtonIconOnly);
// setIconSize(QSize(12,12)); // setIconSize(QSize(12,12));
@ -249,15 +247,6 @@ void GuiView::busy(bool yes) const
QApplication::restoreOverrideCursor(); QApplication::restoreOverrideCursor();
} }
QMainWindow* GuiView::mainWidget()
{
return mainWidget_;
}
QMainWindow* GuiView::mainWidget_ = 0;
} // namespace frontend } // namespace frontend
} // namespace lyx } // namespace lyx

View File

@ -78,9 +78,6 @@ public:
/// returns true if this view has the focus. /// returns true if this view has the focus.
virtual bool hasFocus() const; virtual bool hasFocus() const;
///
static QMainWindow* mainWidget();
public Q_SLOTS: public Q_SLOTS:
/// idle timeout /// idle timeout
void update_view_state_qt(); void update_view_state_qt();
@ -114,9 +111,6 @@ private:
/// command buffer /// command buffer
QCommandBuffer * commandbuffer_; QCommandBuffer * commandbuffer_;
///
static QMainWindow* mainWidget_;
/// ///
void updateFloatingGeometry(); void updateFloatingGeometry();
/// ///