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) {
TRC; LOG<<reply->header(QNetworkRequest::ContentTypeHeader).toString();
LOG<<"Status:"<<_downloadManager->networkError(reply->error());
#if QT_VERSION >= QT_VERSION_CHECK(4, 7, 0)
QList<QNetworkReply::RawHeaderPair> rh(reply->rawHeaderPairs());
for(QList<QNetworkReply::RawHeaderPair>::iterator it(rh.begin());
it!=rh.end(); ++it) {
LOG<<"RawHeader:"<<it->first<<it->second;
}
#endif
handleContent(reply);
}

Loading…
Cancel
Save