[KParts] Fix compilation for Qt 5.13
Summary: Method is deprecated in Qt 5.13
Test Plan: Compiles
Reviewers: apol, mlaurent
Reviewed By: apol, mlaurent
Subscribers: mlaurent, apol, kde-frameworks-devel
Tags: Frameworks
Differential Revision: https://phabricator.kde.org/D19602