From 5e63d70ca598aaae8dbaaf1fbdf786ccafe77696 Mon Sep 17 00:00:00 2001 From: "craig.p.drummond" Date: Wed, 26 Jun 2013 16:24:02 +0000 Subject: [PATCH] Qt5 compile fix --- streams/webstreams.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/streams/webstreams.cpp b/streams/webstreams.cpp index fe12ee4fb..d7f72df88 100644 --- a/streams/webstreams.cpp +++ b/streams/webstreams.cpp @@ -550,7 +550,11 @@ QUrl DigitallyImportedWebStream::channelListUrl() const void DigitallyImportedWebStream::addHeaders(QNetworkRequest &r) { + #if QT_VERSION < 0x050000 r.setRawHeader("Authorization", "Basic "+QString("%1:%2").arg(constDiApiUsername, constDiApiPassword).toAscii().toBase64()); + #else + r.setRawHeader("Authorization", "Basic "+QString("%1:%2").arg(constDiApiUsername, constDiApiPassword).toLatin1().toBase64()); + #endif } //QUrl DigitallyImportedWebStream::modifyUrl(const QUrl &u) const