diff options
author | Dirk Hohndel <dirk@hohndel.org> | 2015-12-01 15:34:00 -0800 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2015-12-01 15:34:00 -0800 |
commit | 3f72500f87cc2824b468f62c1a4bef524ceadfff (patch) | |
tree | 13cff5efec6bff8fc722d220920578348e34e8ad /subsurface-core/checkcloudconnection.cpp | |
parent | c0ac9532427dee713c8ba96a1ceb10ee78b2bfc8 (diff) | |
download | subsurface-3f72500f87cc2824b468f62c1a4bef524ceadfff.tar.gz |
Switch to compile time connect syntax
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'subsurface-core/checkcloudconnection.cpp')
-rw-r--r-- | subsurface-core/checkcloudconnection.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/subsurface-core/checkcloudconnection.cpp b/subsurface-core/checkcloudconnection.cpp index 428c4cda6..f028755d0 100644 --- a/subsurface-core/checkcloudconnection.cpp +++ b/subsurface-core/checkcloudconnection.cpp @@ -32,9 +32,9 @@ bool CheckCloudConnection::checkServer() request.setUrl(QString(prefs.cloud_base_url) + TEAPOT); QNetworkAccessManager *mgr = new QNetworkAccessManager(); reply = mgr->get(request); - connect(&timer, SIGNAL(timeout()), &loop, SLOT(quit())); - connect(reply, SIGNAL(finished()), &loop, SLOT(quit())); - connect(reply, SIGNAL(sslErrors(QList<QSslError>)), this, SLOT(sslErrors(QList<QSslError>))); + connect(&timer, &QTimer::timeout, &loop, &QEventLoop::quit); + connect(reply, &QNetworkReply::finished, &loop, &QEventLoop::quit); + connect(reply, &QNetworkReply::sslErrors, this, &CheckCloudConnection::sslErrors); timer.start(5000); // wait five seconds loop.exec(); if (timer.isActive()) { |