use QT_VERSION for new features - more; refs #160

master
Marc Wäckerlin 12 years ago
parent 2cbec37718
commit 7b7eb1a3ea
  1. 2
      src/browser.hxx

@ -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);
} }

Loading…
Cancel
Save