Skip to content

Instantly share code, notes, and snippets.

@bbandix
Created April 27, 2015 09:17
Show Gist options
  • Save bbandix/a631e18415a56b3009de to your computer and use it in GitHub Desktop.
Save bbandix/a631e18415a56b3009de to your computer and use it in GitHub Desktop.
diff --git a/src/core/location_provider_qt.cpp b/src/core/location_provider_qt.cpp
index d17fc3d..5b61e9d 100644
--- a/src/core/location_provider_qt.cpp
+++ b/src/core/location_provider_qt.cpp
@@ -100,8 +100,7 @@ bool QtPositioningHelper::start(bool highAccuracy)
connect(m_positionInfoSource, &QGeoPositionInfoSource::positionUpdated, this, &QtPositioningHelper::updatePosition);
// disambiguate the error getter and the signal in QGeoPositionInfoSource.
- connect(m_positionInfoSource, static_cast<void (QGeoPositionInfoSource::*)(QGeoPositionInfoSource::Error)>(&QGeoPositionInfoSource::error)
- , this, &QtPositioningHelper::error);
+ connect(m_positionInfoSource, SIGNAL(error(QGeoPositionInfoSource::Error)), this, SLOT(error(QGeoPositionInfoSource::Error)));
connect(m_positionInfoSource, &QGeoPositionInfoSource::updateTimeout, this, &QtPositioningHelper::timeout);
m_positionInfoSource->startUpdates();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment