Avoid deprecated method
Summary: Does the same thing
Reviewers: apol
Reviewed By: apol
Subscribers: plasma-devel
Tags: Plasma
Differential Revision: https://phabricator.kde.org/D25777