Add MacOS build support

This commit is contained in:
Magne Sjaastad
2021-04-05 09:39:12 -07:00
parent 6e45d51e4e
commit 2d9ac615f2
8 changed files with 51 additions and 23 deletions
@@ -76,7 +76,8 @@ RiuWellImportWizard::RiuWellImportWizard( const QString& webServiceAddress,
SIGNAL( authenticationRequired( QNetworkReply*, QAuthenticator* ) ),
this,
SLOT( slotAuthenticationRequired( QNetworkReply*, QAuthenticator* ) ) );
#ifndef QT_NO_OPENSSL
#if !defined( QT_NO_OPENSSL ) && !defined( CVF_OSX )
connect( &m_networkAccessManager,
SIGNAL( sslErrors( QNetworkReply*, QList<QSslError> ) ),
this,
@@ -305,7 +306,7 @@ void RiuWellImportWizard::slotAuthenticationRequired( QNetworkReply* networkRepl
}
}
#ifndef QT_NO_OPENSSL
#if !defined( QT_NO_OPENSSL ) && !defined( CVF_OSX )
void RiuWellImportWizard::sslErrors( QNetworkReply*, const QList<QSslError>& errors )
{
QString errorString;
@@ -340,7 +341,7 @@ void RiuWellImportWizard::startRequest( QUrl url )
{
auto request = QNetworkRequest( url );
#ifndef QT_NO_OPENSSL
#if !defined( QT_NO_OPENSSL ) && !defined( CVF_OSX )
bool supportsSsl = QSslSocket::supportsSsl();
if ( supportsSsl )
{
@@ -228,7 +228,7 @@ public slots:
int wellSelectionPageId();
#ifndef QT_NO_OPENSSL
#if !defined(QT_NO_OPENSSL) && !defined(CVF_OSX)
void sslErrors( QNetworkReply*, const QList<QSslError>& errors );
#endif