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:
Abdelrazak Younes 2006-08-17 12:39:11 +00:00
parent a9f3ec2b60
commit 440c634377

View File

@ -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();