void QgsAuthSslImportDialog::sslErrors( const QList<QSslError> &errors ) { if ( !mTimer->isActive() ) { return; } mTimer->stop(); QDialog errorDialog( this ); Ui_SslErrors ui; ui.setupUi( &errorDialog ); connect( ui.certificateChainButton, SIGNAL( clicked() ), this, SLOT( showCertificateInfo() ) ); Q_FOREACH ( const QSslError &error, errors ) { ui.sslErrorList->addItem( error.errorString() ); }
void SslClient::sslErrors(const QList<QSslError> &errors) { QDialog errorDialog(this); Ui_SslErrors ui; ui.setupUi(&errorDialog); connect(ui.certificateChainButton, &QPushButton::clicked, this, &SslClient::displayCertificateInfo); for (const auto &error : errors) ui.sslErrorList->addItem(error.errorString()); executingDialog = true; if (errorDialog.exec() == QDialog::Accepted) socket->ignoreSslErrors(); executingDialog = false; // did the socket state change? if (socket->state() != QAbstractSocket::ConnectedState) socketStateChanged(socket->state()); }
void SslClient::sslErrors(const QList<QSslError> &errors) { QDialog errorDialog(this); Ui_SslErrors ui; ui.setupUi(&errorDialog); connect(ui.certificateChainButton, SIGNAL(clicked()), this, SLOT(displayCertificateInfo())); foreach (const QSslError &error, errors) ui.sslErrorList->addItem(error.errorString()); executingDialog = true; #ifdef Q_OS_SYMBIAN errorDialog.showMaximized(); #endif if (errorDialog.exec() == QDialog::Accepted) socket->ignoreSslErrors(); executingDialog = false; // did the socket state change? if (socket->state() != QAbstractSocket::ConnectedState) socketStateChanged(socket->state()); }