mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-09 18:31:04 +00:00
* 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:
parent
4758d556c9
commit
61443d8641
@ -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
|
||||
|
||||
|
@ -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:
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user