From a70b513ee0d56016c5ed3e0709d4f994c0881baf Mon Sep 17 00:00:00 2001 From: Markus Goetz Date: Mon, 24 Aug 2009 15:05:41 +0200 Subject: Examples: Warn about usage of QHttp This is an intermediate solution until the examples have been ported to using QNetworkAccessManager. Reviewed-by: TrustMe --- examples/network/http/main.cpp | 1 + examples/network/torrent/main.cpp | 1 + examples/xml/rsslisting/main.cpp | 1 + 3 files changed, 3 insertions(+) diff --git a/examples/network/http/main.cpp b/examples/network/http/main.cpp index f1b7cda..6d10fad 100644 --- a/examples/network/http/main.cpp +++ b/examples/network/http/main.cpp @@ -46,6 +46,7 @@ int main(int argc, char *argv[]) { QApplication app(argc, argv); + qWarning("The usage of QHttp is not recommended anymore, please use QNetworkAccessManager."); HttpWindow httpWin; httpWin.show(); return httpWin.exec(); diff --git a/examples/network/torrent/main.cpp b/examples/network/torrent/main.cpp index e2ecacf..1b66d0e 100644 --- a/examples/network/torrent/main.cpp +++ b/examples/network/torrent/main.cpp @@ -46,6 +46,7 @@ int main(int argc, char *argv[]) { QApplication app(argc, argv); + qWarning("The usage of QHttp is not recommended anymore, please use QNetworkAccessManager."); qsrand(QTime(0,0,0).secsTo(QTime::currentTime())); Q_INIT_RESOURCE(icons); diff --git a/examples/xml/rsslisting/main.cpp b/examples/xml/rsslisting/main.cpp index 122d34c..0ba932f 100644 --- a/examples/xml/rsslisting/main.cpp +++ b/examples/xml/rsslisting/main.cpp @@ -58,6 +58,7 @@ Provides the main function for the RSS news reader example. int main(int argc, char **argv) { QApplication app(argc, argv); + qWarning("The usage of QHttp is not recommended anymore, please use QNetworkAccessManager."); RSSListing *rsslisting = new RSSListing; rsslisting->show(); return app.exec(); -- cgit v0.12