summaryrefslogtreecommitdiff
path: root/src/plugins/geoservices/nokia/placesv2/qplacecontentreplyimpl.cpp
diff options
context:
space:
mode:
authorVolker Hilsheimer <volker.hilsheimer@qt.io>2022-08-22 15:09:25 +0200
committerVolker Hilsheimer <volker.hilsheimer@qt.io>2022-08-23 14:43:13 +0200
commitec29ae5ad6afb4a4b0507bf2f81bdcfe0fcec123 (patch)
treeb36f761ab8f01b64db2e57cafb3d9baa785bed6f /src/plugins/geoservices/nokia/placesv2/qplacecontentreplyimpl.cpp
parent4c4ef4ae797549ac4597d4c8aeba1533c8e4c1f6 (diff)
downloadqtlocation-ec29ae5ad6afb4a4b0507bf2f81bdcfe0fcec123.tar.gz
Port to pointer-to-member-function connection syntax
Rename overloads that would cause conflict and require explicit overloa resolution via QOverload: - Q*Reply::error -> errorOccurred (equivalent to QNetworkReply) - Q*Engine::error -> errorOccurred (for consistency, even if no overloa - Q*Manager::error -> errorOccurred (ditto) - QDeclarativeGeoMap::copyrightChanged -> copyrightImageChanged As a drive-by, change QString value parameters to const references. Pick-to: 6.2 Change-Id: I1ab16079842540ca0a86f711d83b35c8c56135e6 Reviewed-by: Ivan Solovev <ivan.solovev@qt.io>
Diffstat (limited to 'src/plugins/geoservices/nokia/placesv2/qplacecontentreplyimpl.cpp')
-rw-r--r--src/plugins/geoservices/nokia/placesv2/qplacecontentreplyimpl.cpp9
1 files changed, 5 insertions, 4 deletions
diff --git a/src/plugins/geoservices/nokia/placesv2/qplacecontentreplyimpl.cpp b/src/plugins/geoservices/nokia/placesv2/qplacecontentreplyimpl.cpp
index 587456f6..32e1e5c9 100644
--- a/src/plugins/geoservices/nokia/placesv2/qplacecontentreplyimpl.cpp
+++ b/src/plugins/geoservices/nokia/placesv2/qplacecontentreplyimpl.cpp
@@ -62,9 +62,10 @@ QPlaceContentReplyImpl::QPlaceContentReplyImpl(const QPlaceContentRequest &reque
}
setRequest(request);
- connect(reply, SIGNAL(finished()), this, SLOT(replyFinished()));
- connect(reply, SIGNAL(errorOccurred(QNetworkReply::NetworkError)),
- this, SLOT(replyError(QNetworkReply::NetworkError)));
+ connect(reply, &QNetworkReply::finished,
+ this, &QPlaceContentReplyImpl::replyFinished);
+ connect(reply, &QNetworkReply::errorOccurred,
+ this, &QPlaceContentReplyImpl::replyError);
connect(this, &QPlaceReply::aborted, reply, &QNetworkReply::abort);
connect(this, &QObject::destroyed, reply, &QObject::deleteLater);
}
@@ -76,7 +77,7 @@ QPlaceContentReplyImpl::~QPlaceContentReplyImpl()
void QPlaceContentReplyImpl::setError(QPlaceReply::Error error_, const QString &errorString)
{
QPlaceContentReply::setError(error_, errorString);
- emit error(error_, errorString);
+ emit errorOccurred(error_, errorString);
setFinished(true);
emit finished();
}