Fix preedit text on XCB
indexOfMethod() requires a full signature, not just a method name. Change-Id: Icb15ab46cab61b35f5d56e8e94b71f5e3b72f97a Reviewed-on: http://codereview.qt-project.org/5386 Reviewed-by: Qt Sanity Bot <qt_sanity_bot@ovi.com> Reviewed-by: Joona Petrell <joona.t.petrell@nokia.com> Reviewed-by: Lars Knoll <lars.knoll@nokia.com>
This commit is contained in:
parent
75009fb135
commit
7f9b7c478b
@ -1030,7 +1030,7 @@ void QXcbKeyboard::handleKeyEvent(QWindow *window, QEvent::Type type, xcb_keycod
|
||||
|
||||
if (inputContext) {
|
||||
bool retval = false;
|
||||
if (inputContext->metaObject()->indexOfMethod("x11FilterEvent") != -1)
|
||||
if (inputContext->metaObject()->indexOfMethod("x11FilterEvent(uint,uint,uint,bool)") != -1)
|
||||
QMetaObject::invokeMethod(inputContext, "x11FilterEvent", Qt::DirectConnection,
|
||||
Q_RETURN_ARG(bool, retval),
|
||||
Q_ARG(uint, sym),
|
||||
|
Loading…
Reference in New Issue
Block a user