Changeset 769 for trunk/demos/browser
- Timestamp:
- Aug 2, 2010, 9:27:30 PM (15 years ago)
- Location:
- trunk
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk
- Property svn:mergeinfo changed
/branches/vendor/nokia/qt/4.6.3 (added) merged: 768 /branches/vendor/nokia/qt/current merged: 767 /branches/vendor/nokia/qt/4.6.2 removed
- Property svn:mergeinfo changed
-
trunk/demos/browser/browser.pro
r680 r769 6 6 contains(QT_BUILD_PARTS, tools):!embedded: CONFIG += uitools 7 7 else: DEFINES += QT_NO_UITOOLS 8 9 CONFIG(release,release|debug):DEFINES+=QT_NO_DEBUG_OUTPUT QT_NO_WARNING_OUTPUT10 8 11 9 FORMS += \ -
trunk/demos/browser/networkaccessmanager.cpp
r651 r769 113 113 double pctPipelined = (double(requestFinishedPipelinedCount) * 100.0/ double(requestFinishedCount)); 114 114 double pctSecure = (double(requestFinishedSecureCount) * 100.0/ double(requestFinishedCount)); 115 #ifdef QT_DEBUG 115 116 qDebug("STATS [%lli requests total] [%3.2f%% from cache] [%3.2f%% pipelined] [%3.2f%% SSL/TLS]", requestFinishedCount, pctCached, pctPipelined, pctSecure); 116 117 #endif 117 118 } 118 119 -
trunk/demos/browser/webview.cpp
r651 r769 144 144 void WebPage::handleUnsupportedContent(QNetworkReply *reply) 145 145 { 146 if (reply->error() == QNetworkReply::NoError) { 147 BrowserApplication::downloadManager()->handleUnsupportedContent(reply); 146 QString errorString = reply->errorString(); 147 148 if (m_loadingUrl != reply->url()) { 149 // sub resource of this page 150 qWarning() << "Resource" << reply->url().toEncoded() << "has unknown Content-Type, will be ignored."; 151 reply->deleteLater(); 148 152 return; 153 } 154 155 if (reply->error() == QNetworkReply::NoError && !reply->header(QNetworkRequest::ContentTypeHeader).isValid()) { 156 errorString = "Unknown Content-Type"; 149 157 } 150 158 … … 157 165 QString html = QString(QLatin1String(file.readAll())) 158 166 .arg(title) 159 .arg( reply->errorString())167 .arg(errorString) 160 168 .arg(reply->url().toString()); 161 169
Note:
See TracChangeset
for help on using the changeset viewer.