mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-09 18:31:04 +00:00
GuiWorkArea::inputMethodEvent(QInputMethodEvent * e):
compile fix and use of the proper QKeyEvent prototype. git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@14782 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
parent
a9f3ec2b60
commit
440c634377
@ -593,7 +593,8 @@ void GuiWorkArea::inputMethodEvent(QInputMethodEvent * e)
|
||||
// ideally, such special coding should not be necessary
|
||||
if (text == "^")
|
||||
key = Qt::Key_AsciiCircum;
|
||||
QKeyEvent ev(QEvent::KeyPress, key, 0, text);
|
||||
QKeyEvent ev(QEvent::KeyPress, key,
|
||||
Qt::KeyboardModifiers(Qt::NoModifier), text);
|
||||
keyPressEvent(&ev);
|
||||
}
|
||||
e->accept();
|
||||
|
Loading…
Reference in New Issue
Block a user