Fix compile with QT_NO_CAST_FROM_ASCII
Test Plan: Compile it
Reviewers: dfaure
Reviewed By: dfaure
Subscribers: Frameworks
Tags: Frameworks
Differential Revision: https://phabricator.kde.org/D9044