From 8680f2bd09d84d533dc4a9250edf686880cce7ee Mon Sep 17 00:00:00 2001 From: Daniel Kristjansson Date: Sun, 24 Feb 2013 13:56:16 -0500 Subject: [PATCH] Convert QUrl encode/decode to Qt5 API under Qt5. --- mythtv/libs/libmythbase/remotefile.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/mythtv/libs/libmythbase/remotefile.cpp b/mythtv/libs/libmythbase/remotefile.cpp index 7239de5f23e..678d546d53d 100644 --- a/mythtv/libs/libmythbase/remotefile.cpp +++ b/mythtv/libs/libmythbase/remotefile.cpp @@ -64,7 +64,12 @@ MythSocket *RemoteFile::openSocket(bool control) dir = qurl.path(); if (qurl.hasQuery()) +#if QT_VERSION >= QT_VERSION_CHECK(5,0,0) + dir += "?" + QUrl::fromPercentEncoding( + qurl.query(QUrl::FullyEncoded).toLocal8Bit()); +#else dir += "?" + QUrl::fromPercentEncoding(qurl.encodedQuery()); +#endif if (qurl.hasFragment()) dir += "#" + qurl.fragment();