diff options
author | Volker Hilsheimer <volker.hilsheimer@qt.io> | 2022-08-22 15:09:25 +0200 |
---|---|---|
committer | Volker Hilsheimer <volker.hilsheimer@qt.io> | 2022-08-23 14:43:13 +0200 |
commit | ec29ae5ad6afb4a4b0507bf2f81bdcfe0fcec123 (patch) | |
tree | b36f761ab8f01b64db2e57cafb3d9baa785bed6f /src/location/declarativemaps/qdeclarativepolylinemapitem.cpp | |
parent | 4c4ef4ae797549ac4597d4c8aeba1533c8e4c1f6 (diff) |
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/location/declarativemaps/qdeclarativepolylinemapitem.cpp')
-rw-r--r-- | src/location/declarativemaps/qdeclarativepolylinemapitem.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/location/declarativemaps/qdeclarativepolylinemapitem.cpp b/src/location/declarativemaps/qdeclarativepolylinemapitem.cpp index 649a9ef4..a7a3c21c 100644 --- a/src/location/declarativemaps/qdeclarativepolylinemapitem.cpp +++ b/src/location/declarativemaps/qdeclarativepolylinemapitem.cpp @@ -936,10 +936,10 @@ QDeclarativePolylineMapItem::QDeclarativePolylineMapItem(QQuickItem *parent) m_itemType = QGeoMap::MapPolyline; m_geopath = QGeoPathEager(); setFlag(ItemHasContents, true); - QObject::connect(&m_line, SIGNAL(colorChanged(QColor)), - this, SLOT(updateAfterLinePropertiesChanged())); - QObject::connect(&m_line, SIGNAL(widthChanged(qreal)), - this, SLOT(updateAfterLinePropertiesChanged())); + QObject::connect(&m_line, &QDeclarativeMapLineProperties::colorChanged, + this, &QDeclarativePolylineMapItem::updateAfterLinePropertiesChanged); + QObject::connect(&m_line, &QDeclarativeMapLineProperties::widthChanged, + this, &QDeclarativePolylineMapItem::updateAfterLinePropertiesChanged); setBackend(mapPolylineBackendSelector->backend); } |