]> git.lyx.org Git - features.git/commitdiff
* src/frontends/qt4/GuiWorkArea.[Ch] (focusInEvent, focusOutEvent):
authorAbdelrazak Younes <younes@lyx.org>
Mon, 21 Aug 2006 09:14:18 +0000 (09:14 +0000)
committerAbdelrazak Younes <younes@lyx.org>
Mon, 21 Aug 2006 09:14:18 +0000 (09:14 +0000)
new methods; invoke LyXView::updateToolbars() (bug 2423).

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@14809 a592a061-630c-0410-9148-cb99ea01b6c8

src/frontends/qt4/GuiWorkArea.C
src/frontends/qt4/GuiWorkArea.h

index 7ea3ae0e098b3bf4863dee29d5e7384cfcaba320..48437bb1c9c3b7e9ae9a7d8dd714955e8fd24c09 100644 (file)
@@ -19,6 +19,8 @@
 #include "QLyXKeySym.h"
 #include "qt_helpers.h"
 
+#include "LyXView.h"
+
 #include "BufferView.h"
 #include "debug.h"
 #include "funcrequest.h"
@@ -580,6 +582,20 @@ void GuiWorkArea::inputMethodEvent(QInputMethodEvent * e)
        e->accept();
 }
 
+
+void GuiWorkArea::focusInEvent(QFocusEvent * ev)
+{
+       QAbstractScrollArea::focusInEvent(ev);
+       lyx_view_.updateToolbars();
+}
+
+
+void GuiWorkArea::focusOutEvent(QFocusEvent * ev)
+{
+       QAbstractScrollArea::focusOutEvent(ev);
+       lyx_view_.updateToolbars();
+}
+
 } // namespace frontend
 } // namespace lyx
 
index 2f96ff7a6c448a96581087c54dd23bdf85d11e34..c6ebce0b6867f7b9b7a4e3f891b26909c030e56a 100644 (file)
@@ -160,6 +160,10 @@ protected:
        void keyPressEvent(QKeyEvent * e);
        /// IM events
        void inputMethodEvent(QInputMethodEvent * e);
+       /// focus in
+       void focusInEvent(QFocusEvent * ev);
+       /// focus out
+       void focusOutEvent(QFocusEvent * ev);
 
 public Q_SLOTS: