From 3f91cde588ad32277ba06d625ed36256ec65f88e Mon Sep 17 00:00:00 2001 From: Shane Kearns Date: Mon, 20 Feb 2012 17:02:41 +0000 Subject: Test for QT_NO_SSL instead of QT_NO_OPENSSL Change the ifdefs in our own code (except openssl backend) to use the new configure flag. Change-Id: I8774734771c66b22164b5fae8fdb27814ac3df7b Reviewed-by: Richard J. Moore --- examples/network/download/main.cpp | 2 +- examples/network/http/httpwindow.cpp | 6 +++--- examples/network/http/httpwindow.h | 2 +- 3 files changed, 5 insertions(+), 5 deletions(-) (limited to 'examples') diff --git a/examples/network/download/main.cpp b/examples/network/download/main.cpp index aea42a540c..ae3aa1f78b 100644 --- a/examples/network/download/main.cpp +++ b/examples/network/download/main.cpp @@ -151,7 +151,7 @@ void DownloadManager::execute() void DownloadManager::sslErrors(const QList &sslErrors) { -#ifndef QT_NO_OPENSSL +#ifndef QT_NO_SSL foreach (const QSslError &error, sslErrors) fprintf(stderr, "SSL error: %s\n", qPrintable(error.errorString())); #endif diff --git a/examples/network/http/httpwindow.cpp b/examples/network/http/httpwindow.cpp index 2f5f739853..c56a6fa53f 100644 --- a/examples/network/http/httpwindow.cpp +++ b/examples/network/http/httpwindow.cpp @@ -47,7 +47,7 @@ HttpWindow::HttpWindow(QWidget *parent) : QDialog(parent) { -#ifndef QT_NO_OPENSSL +#ifndef QT_NO_SSL urlLineEdit = new QLineEdit("https://qt.nokia.com/"); #else urlLineEdit = new QLineEdit("http://qt.nokia.com/"); @@ -75,7 +75,7 @@ HttpWindow::HttpWindow(QWidget *parent) connect(&qnam, SIGNAL(authenticationRequired(QNetworkReply*,QAuthenticator*)), this, SLOT(slotAuthenticationRequired(QNetworkReply*,QAuthenticator*))); -#ifndef QT_NO_OPENSSL +#ifndef QT_NO_SSL connect(&qnam, SIGNAL(sslErrors(QNetworkReply*,QList)), this, SLOT(sslErrors(QNetworkReply*,QList))); #endif @@ -247,7 +247,7 @@ void HttpWindow::slotAuthenticationRequired(QNetworkReply*,QAuthenticator *authe } } -#ifndef QT_NO_OPENSSL +#ifndef QT_NO_SSL void HttpWindow::sslErrors(QNetworkReply*,const QList &errors) { QString errorString; diff --git a/examples/network/http/httpwindow.h b/examples/network/http/httpwindow.h index 54587b2f6d..a3694ddcbe 100644 --- a/examples/network/http/httpwindow.h +++ b/examples/network/http/httpwindow.h @@ -76,7 +76,7 @@ private slots: void updateDataReadProgress(qint64 bytesRead, qint64 totalBytes); void enableDownloadButton(); void slotAuthenticationRequired(QNetworkReply*,QAuthenticator *); -#ifndef QT_NO_OPENSSL +#ifndef QT_NO_SSL void sslErrors(QNetworkReply*,const QList &errors); #endif -- cgit v1.2.3