add_definitions(-DQT_NO_URL_CAST_FROM_STRING) and fix compilation accordingly

Authored by dfaure on Jun 22 2016, 9:45 PM.

Description

add_definitions(-DQT_NO_URL_CAST_FROM_STRING) and fix compilation accordingly

Summary: Please check the rewrite of the method that was going QString -> QUrl -> QString -> QUrl.

Test Plan: none

Reviewers: ivan

Reviewed By: ivan

Subscribers: Plasma

Differential Revision: https://phabricator.kde.org/D1978