* src/frontends/qt4/GuiWorkArea.[Ch] (focusInEvent, focusOutEvent):

new methods; invoke LyXView::updateToolbars() (bug 2423).

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@14809 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
Abdelrazak Younes 2006-08-21 09:14:18 +00:00
parent 4758d556c9
commit 61443d8641
2 changed files with 20 additions and 0 deletions

View 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

View 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: