use QT_VERSION for new features - more; refs #160

This commit is contained in:
Marc Wäckerlin
2012-09-20 12:08:30 +00:00
parent 2cbec37718
commit 7b7eb1a3ea

View File

@@ -1317,11 +1317,13 @@ class Browser: public QMainWindow, protected Ui::Browser {
void unsupportedContent(QNetworkReply* reply) { void unsupportedContent(QNetworkReply* reply) {
TRC; LOG<<reply->header(QNetworkRequest::ContentTypeHeader).toString(); TRC; LOG<<reply->header(QNetworkRequest::ContentTypeHeader).toString();
LOG<<"Status:"<<_downloadManager->networkError(reply->error()); LOG<<"Status:"<<_downloadManager->networkError(reply->error());
#if QT_VERSION >= QT_VERSION_CHECK(4, 7, 0)
QList<QNetworkReply::RawHeaderPair> rh(reply->rawHeaderPairs()); QList<QNetworkReply::RawHeaderPair> rh(reply->rawHeaderPairs());
for(QList<QNetworkReply::RawHeaderPair>::iterator it(rh.begin()); for(QList<QNetworkReply::RawHeaderPair>::iterator it(rh.begin());
it!=rh.end(); ++it) { it!=rh.end(); ++it) {
LOG<<"RawHeader:"<<it->first<<it->second; LOG<<"RawHeader:"<<it->first<<it->second;
} }
#endif
handleContent(reply); handleContent(reply);
} }