Make it compile without deprecated method
Summary: Compile without deprecated method
Reviewers: vkrause
Reviewed By: vkrause
Differential Revision: https://phabricator.kde.org/D27211