#574: Añadir código al Browser para ignorar los errores de SSL.
git-svn-id: https://opengnsys.es/svn/branches/version1.0@3492 a21b9725-9963-47de-94b9-378ad31fedc9remotes/github/master
parent
59d9c8cd4e
commit
25185131e1
|
@ -14,6 +14,8 @@
|
|||
#include <QTabWidget>
|
||||
#include <QWebView>
|
||||
#include <QLineEdit>
|
||||
#include <QNetworkReply>
|
||||
#include <QSslError>
|
||||
|
||||
#include "qtermwidget.h"
|
||||
|
||||
|
@ -97,6 +99,10 @@ MainWindow::MainWindow(QWidget *parent)
|
|||
connect(m_web,SIGNAL(loadProgress(int)),this,SLOT(slotWebLoadProgress(int)));
|
||||
connect(m_web,SIGNAL(urlChanged(const QUrl&)),this,
|
||||
SLOT(slotUrlChanged(const QUrl&)));
|
||||
// Ignore SSL errors.
|
||||
connect(m_web->page()->networkAccessManager(),
|
||||
SIGNAL(sslErrors(QNetworkReply*, const QList<QSslError> &)), this,
|
||||
SLOT(slotSslErrors(QNetworkReply*)));
|
||||
|
||||
// Process signals
|
||||
connect(m_process,SIGNAL(started()),this,SLOT(slotProcessStarted()));
|
||||
|
@ -234,6 +240,11 @@ void MainWindow::slotUrlChanged(const QUrl &url)
|
|||
m_webBar->setText(url.toString());
|
||||
}
|
||||
|
||||
void MainWindow::slotSslErrors(QNetworkReply* reply)
|
||||
{
|
||||
reply->ignoreSslErrors();
|
||||
}
|
||||
|
||||
void MainWindow::slotProcessStarted()
|
||||
{
|
||||
print(tr("Lanzado satisfactoriamente."));
|
||||
|
|
|
@ -10,6 +10,8 @@
|
|||
#include <QProcess>
|
||||
#include <QMap>
|
||||
#include <QMainWindow>
|
||||
#include <QNetworkReply>
|
||||
#include <QSslError>
|
||||
|
||||
class QWebView;
|
||||
class QTextEdit;
|
||||
|
@ -38,6 +40,7 @@ class MainWindow : public QMainWindow
|
|||
void slotWebLoadStarted();
|
||||
void slotWebLoadFinished(bool ok);
|
||||
void slotWebLoadProgress(int progress);
|
||||
void slotSslErrors(QNetworkReply* reply);
|
||||
|
||||
// Funciones que manejan cada vez que el proceso hace algo
|
||||
void slotProcessStarted();
|
||||
|
|
Loading…
Reference in New Issue