summaryrefslogtreecommitdiffstats
path: root/src/slxbrowser.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/slxbrowser.cpp')
-rw-r--r--src/slxbrowser.cpp13
1 files changed, 6 insertions, 7 deletions
diff --git a/src/slxbrowser.cpp b/src/slxbrowser.cpp
index 5ffe281..c56d5da 100644
--- a/src/slxbrowser.cpp
+++ b/src/slxbrowser.cpp
@@ -38,11 +38,11 @@ SLXbrowser::SLXbrowser(BrowserSettings settings)
this->setCentralWidget(w);
_reset.setSingleShot(true);
- connect(&_reset, SIGNAL(timeout()), this, SLOT(reloadInitial()));
+ connect(&_reset, &QTimer::timeout, this, &SLXbrowser::reloadInitial);
- connect(_browser, SIGNAL(loadStarted()), this, SLOT(loadStarted()));
- connect(_browser, SIGNAL(loadFinished(bool)), this, SLOT(loadFinished(bool)));
- connect(_browser, SIGNAL(loadProgress(int)), this, SLOT(loadProgress(int)));
+ connect(_browser, &WebView::loadStarted, this, &SLXbrowser::loadStarted);
+ connect(_browser, &WebView::loadFinished, this, &SLXbrowser::loadFinished);
+ connect(_browser, &WebView::loadProgress, this, &SLXbrowser::loadProgress);
//
QWebPage *page = _browser->page();
QNetworkAccessManager *nam;
@@ -55,9 +55,8 @@ SLXbrowser::SLXbrowser(BrowserSettings settings)
}
nam = new SlxNetworkAccessManager(urlListToRegExp(_settings.urlList), _settings.isWhitelist);
}
- connect(nam, SIGNAL(sslErrors(QNetworkReply*, const QList<QSslError>&)),
- this, SLOT(sslErrors(QNetworkReply*, const QList<QSslError>&)));
- connect(nam, SIGNAL(finished(QNetworkReply*)), this, SLOT(requestFinished(QNetworkReply*)));
+ connect(nam, &QNetworkAccessManager::sslErrors, this, &SLXbrowser::sslErrors);
+ connect(nam, &QNetworkAccessManager::finished, this, &SLXbrowser::requestFinished);
page->setNetworkAccessManager(nam);
page->mainFrame()->load(_settings.url);
//