From 3f72500f87cc2824b468f62c1a4bef524ceadfff Mon Sep 17 00:00:00 2001 From: Dirk Hohndel Date: Tue, 1 Dec 2015 15:34:00 -0800 Subject: Switch to compile time connect syntax Signed-off-by: Dirk Hohndel --- subsurface-core/checkcloudconnection.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'subsurface-core') 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)), this, SLOT(sslErrors(QList))); + 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()) { -- cgit v1.2.3-70-g09d2