From 9f26cdda319cd19b364a33fe0ed2786818207fc1 Mon Sep 17 00:00:00 2001 From: Abdelrazak Younes Date: Sun, 18 Nov 2007 22:29:58 +0000 Subject: [PATCH] rev 21667: Forgot this! git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@21668 a592a061-630c-0410-9148-cb99ea01b6c8 --- src/frontends/qt4/GuiApplication.cpp | 1 - src/frontends/qt4/GuiView.cpp | 8 ++------ src/frontends/qt4/GuiView.h | 9 ++++++--- 3 files changed, 8 insertions(+), 10 deletions(-) diff --git a/src/frontends/qt4/GuiApplication.cpp b/src/frontends/qt4/GuiApplication.cpp index 0fad5bc9c1..c954aba91c 100644 --- a/src/frontends/qt4/GuiApplication.cpp +++ b/src/frontends/qt4/GuiApplication.cpp @@ -234,7 +234,6 @@ LyXView & GuiApplication::createView(string const & geometry_arg) GuiView * view = views_[id]; theLyXFunc().setLyXView(view); - view->init(); view->show(); if (!geometry_arg.empty()) { #ifdef Q_WS_WIN diff --git a/src/frontends/qt4/GuiView.cpp b/src/frontends/qt4/GuiView.cpp index 8eb4a016eb..958160350d 100644 --- a/src/frontends/qt4/GuiView.cpp +++ b/src/frontends/qt4/GuiView.cpp @@ -323,6 +323,8 @@ GuiView::GuiView(int id) // For Drag&Drop. setAcceptDrops(true); + + init(); } @@ -1417,12 +1419,6 @@ Dialog * GuiView::build(string const & name) } -/// Are the tooltips on or off? -bool GuiView::tooltipsEnabled() -{ - return false; -} - } // namespace frontend } // namespace lyx diff --git a/src/frontends/qt4/GuiView.h b/src/frontends/qt4/GuiView.h index 774a5543cd..626a763db4 100644 --- a/src/frontends/qt4/GuiView.h +++ b/src/frontends/qt4/GuiView.h @@ -61,7 +61,13 @@ public: ~GuiView(); + /** + * This is called after the concrete view has been created. + * We have to have the toolbar and the other stuff created + * before we can populate it with this call. + */ virtual void init(); + /// virtual void close(); virtual void setFocus(); virtual void setBusy(bool); @@ -211,9 +217,6 @@ public: */ void checkStatus(); - /// Are the tooltips on or off? - bool tooltipsEnabled(); - /// Hide all visible dialogs void hideAll() const; /// Hide any dialogs that require a buffer for them to operate -- 2.39.2