diff --git a/tests/testcontainmentactionsplugin/test.cpp b/tests/testcontainmentactionsplugin/test.cpp index 84bf9592e..05066b6c9 100644 --- a/tests/testcontainmentactionsplugin/test.cpp +++ b/tests/testcontainmentactionsplugin/test.cpp @@ -37,10 +37,10 @@ void ContextTest::contextEvent(QEvent *event) { switch (event->type()) { case QEvent::GraphicsSceneMousePress: - contextEvent(dynamic_cast(event)); + contextEvent(static_cast(event)); break; case QEvent::GraphicsSceneWheel: - wheelEvent(dynamic_cast(event)); + wheelEvent(static_cast(event)); break; default: break;