diff options
author | Markus Goetz <Markus.Goetz@nokia.com> | 2010-02-09 10:06:44 (GMT) |
---|---|---|
committer | Markus Goetz <Markus.Goetz@nokia.com> | 2010-02-09 12:08:39 (GMT) |
commit | 4519080aacc480acea59758e4ca4efeed599aaec (patch) | |
tree | b6a87dde1f01c2dd3d0dc71169cd231d73bb5e1f /demos/browser | |
parent | 9be25c3847bb90eb2a6cf9cd6d357e83b7ad89a2 (diff) | |
download | Qt-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.pro | 2 | ||||
-rw-r--r-- | demos/browser/networkaccessmanager.cpp | 3 |
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() |