]> git.lyx.org Git - features.git/commitdiff
GuiWorkArea::inputMethodEvent(QInputMethodEvent * e):
authorAbdelrazak Younes <younes@lyx.org>
Thu, 17 Aug 2006 12:39:11 +0000 (12:39 +0000)
committerAbdelrazak Younes <younes@lyx.org>
Thu, 17 Aug 2006 12:39:11 +0000 (12:39 +0000)
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

src/frontends/qt4/GuiWorkArea.C

index 2a99b150415428b1a81864eccaeed65f41416d55..bd0b165bcf71a975ef044b1a3f70d22a2fe33fae 100644 (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();