From dbdfdb2c95b261fe28955a89c2e00e212fd7d106 Mon Sep 17 00:00:00 2001 From: Pekka Vuorela Date: Tue, 20 Sep 2011 15:33:27 +0300 Subject: Implemented key filter support on platform input context As previously with QInputContext, now supporting filterEvent() interface. Usage only on XCB so far. Change-Id: I8e5972626552bda32318fe060017d0217bb79a94 Reviewed-on: http://codereview.qt-project.org/5240 Reviewed-by: Qt Sanity Bot Reviewed-by: Joona Petrell Reviewed-by: Lars Knoll --- src/gui/kernel/qplatforminputcontext_qpa.cpp | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'src/gui/kernel/qplatforminputcontext_qpa.cpp') diff --git a/src/gui/kernel/qplatforminputcontext_qpa.cpp b/src/gui/kernel/qplatforminputcontext_qpa.cpp index 0fdcd9e9ac..3459046dab 100644 --- a/src/gui/kernel/qplatforminputcontext_qpa.cpp +++ b/src/gui/kernel/qplatforminputcontext_qpa.cpp @@ -78,6 +78,11 @@ void QPlatformInputContext::invokeAction(QInputPanel::Action action, int cursorP reset(); } +bool QPlatformInputContext::filterEvent(const QEvent *event) +{ + return false; +} + QRectF QPlatformInputContext::keyboardRect() const { return QRectF(); -- cgit v1.2.3