summaryrefslogtreecommitdiffstats
path: root/demos/browser
diff options
context:
space:
mode:
authorMarkus Goetz <Markus.Goetz@nokia.com>2010-02-09 10:06:44 (GMT)
committerMarkus Goetz <Markus.Goetz@nokia.com>2010-02-09 12:08:39 (GMT)
commit4519080aacc480acea59758e4ca4efeed599aaec (patch)
treeb6a87dde1f01c2dd3d0dc71169cd231d73bb5e1f /demos/browser
parent9be25c3847bb90eb2a6cf9cd6d357e83b7ad89a2 (diff)
downloadQt-4519080aacc480acea59758e4ca4efeed599aaec.zip
Qt-4519080aacc480acea59758e4ca4efeed599aaec.tar.gz
Qt-4519080aacc480acea59758e4ca4efeed599aaec.tar.bz2
demo browser: Fix the way warnings were (not) displayed
Reviewed-by: TrustMe
Diffstat (limited to 'demos/browser')
-rw-r--r--demos/browser/browser.pro2
-rw-r--r--demos/browser/networkaccessmanager.cpp3
2 files changed, 2 insertions, 3 deletions
diff --git a/demos/browser/browser.pro b/demos/browser/browser.pro
index a42aa60..f038c61 100644
--- a/demos/browser/browser.pro
+++ b/demos/browser/browser.pro
@@ -6,8 +6,6 @@ CONFIG += qt warn_on
contains(QT_BUILD_PARTS, tools):!embedded: CONFIG += uitools
else: DEFINES += QT_NO_UITOOLS
-release:DEFINES+=QT_NO_DEBUG_OUTPUT QT_NO_WARNING_OUTPUT
-
FORMS += \
addbookmarkdialog.ui \
bookmarks.ui \
diff --git a/demos/browser/networkaccessmanager.cpp b/demos/browser/networkaccessmanager.cpp
index b0b00a2..70a9305 100644
--- a/demos/browser/networkaccessmanager.cpp
+++ b/demos/browser/networkaccessmanager.cpp
@@ -112,8 +112,9 @@ void NetworkAccessManager::requestFinished(QNetworkReply *reply)
double pctCached = (double(requestFinishedFromCacheCount) * 100.0/ double(requestFinishedCount));
double pctPipelined = (double(requestFinishedPipelinedCount) * 100.0/ double(requestFinishedCount));
double pctSecure = (double(requestFinishedSecureCount) * 100.0/ double(requestFinishedCount));
+#ifdef QT_DEBUG
qDebug("STATS [%lli requests total] [%3.2f%% from cache] [%3.2f%% pipelined] [%3.2f%% SSL/TLS]", requestFinishedCount, pctCached, pctPipelined, pctSecure);
-
+#endif
}
void NetworkAccessManager::loadSettings()