From 5686824229c331abb690089e94448087f1288556 Mon Sep 17 00:00:00 2001 From: Peter Varga Date: Mon, 16 Jan 2023 14:38:39 +0100 Subject: [PATCH] tests: remove PlatformInputContext::filterEvent() MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This overridden function is not used and also can't be triggered by a synthetic input event in an auto test. Change-Id: Id8b69b440a90c18cf5870e34804fae3e6607e49f Reviewed-by: Jörg Bornemann --- tests/auto/shared/platforminputcontext.h | 6 ------ 1 file changed, 6 deletions(-) diff --git a/tests/auto/shared/platforminputcontext.h b/tests/auto/shared/platforminputcontext.h index 1c8890d21c..95777b96a1 100644 --- a/tests/auto/shared/platforminputcontext.h +++ b/tests/auto/shared/platforminputcontext.h @@ -17,7 +17,6 @@ public: m_lastQueries(Qt::ImhNone), m_action(QInputMethod::Click), m_cursorPosition(0), - m_lastEventType(QEvent::None), m_setFocusObjectCallCount(0) {} @@ -51,10 +50,6 @@ public: m_action = action; m_cursorPosition = cursorPosition; } - virtual bool filterEvent(const QEvent *event) override - { - m_lastEventType = event->type(); return false; - } virtual void showInputPanel() override { m_visible = true; @@ -94,7 +89,6 @@ public: Qt::InputMethodQueries m_lastQueries; QInputMethod::Action m_action; int m_cursorPosition; - int m_lastEventType; QRectF m_keyboardRect; int m_setFocusObjectCallCount; };