Replace obsolete QString::sprintf
Change deprecated QString::sprintf with QString::asprintf
Differential Revision: https://phabricator.kde.org/D27289