use QT_VERSION for new features - more; refs #160
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user