From fc812ea130fbe71ce100af79787245bf0ed86bdf Mon Sep 17 00:00:00 2001 From: Jan Mulder Date: Mon, 24 Sep 2018 10:00:55 +0200 Subject: core: fix connect call Fix multiple run-time errors in connect call introduced in 504e9125126. 1) Set the proper signature of the signal. 2) make the used slot a real slot (so move it to the proper section in the header) and 3) set the proper signature for the slot. Highly unlikely that normal users notice the runtime errors and possibly unwantend behavior, as this all deals with the subtile GPS service update threshold. Signed-off-by: Jan Mulder --- core/gpslocation.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'core/gpslocation.h') diff --git a/core/gpslocation.h b/core/gpslocation.h index f55e3bf9d..70bb17404 100644 --- a/core/gpslocation.h +++ b/core/gpslocation.h @@ -32,7 +32,6 @@ public: int getGpsNum() const; bool hasLocationsSource(); QString currentPosition(); - void setGpsTimeThreshold(int seconds); QMap currentGPSInfo() const; @@ -66,6 +65,7 @@ public slots: void updateTimeout(); void positionSourceError(QGeoPositionInfoSource::Error error); void postError(QNetworkReply::NetworkError error); + void setGpsTimeThreshold(int seconds); #ifdef SUBSURFACE_MOBILE void clearGpsData(); #endif -- cgit v1.2.3-70-g09d2