Skip to content

Commit

Permalink
Convert QUrl encode/decode to Qt5 API under Qt5.
Browse files Browse the repository at this point in the history
  • Loading branch information
daniel-kristjansson committed Mar 1, 2013
1 parent 48f3687 commit 8680f2b
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions mythtv/libs/libmythbase/remotefile.cpp
Expand Up @@ -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();
Expand Down

0 comments on commit 8680f2b

Please sign in to comment.