Since https://cgit.kde.org/kdev-python.git/commit/?h=5.2&id=b553d75e , none of these range-overriding parameters have an effect (some weren't used before either).
This also fixes a deprecation warning by not using the QualifiedIdentifier overload of openDeclaration().