Fix Qt5 build - setEncodedUrl is deprecated in Qt5, and doesn't seem to be required.
BUG: 344
This commit is contained in:
committed by
craig.p.drummond
parent
01a49c415d
commit
d77d406a06
@@ -216,9 +216,13 @@ QByteArray HttpServer::encodeUrl(const QString &file) const
|
||||
|
||||
Song HttpServer::decodeUrl(const QString &url) const
|
||||
{
|
||||
#if QT_VERSION >= 0x050000
|
||||
return decodeUrl(QUrl(url));
|
||||
#else
|
||||
QUrl u;
|
||||
u.setEncodedUrl(url.toUtf8());
|
||||
return decodeUrl(u);
|
||||
#endif
|
||||
}
|
||||
|
||||
Song HttpServer::decodeUrl(const QUrl &url) const
|
||||
|
||||
Reference in New Issue
Block a user