text: PyQt6 compatibility for the "Find in diff" feature