Skip to content

Commit

Permalink
[QtLocation] Make invoked methods invokable. Contributes to JB#36989
Browse files Browse the repository at this point in the history
A previous commit 55009ec added an invalid metaobject invocation
of methods which were not a slot or Q_INVOKABLE.
This commit makes those methods private slots.

Contributes to JB#36989
  • Loading branch information
Chris Adams committed Nov 18, 2016
1 parent 93819e2 commit 7b51310
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 6 deletions.
Expand Up @@ -169,6 +169,7 @@ QGeoSatelliteInfoSourceGeoclueMaster::QGeoSatelliteInfoSourceGeoclueMaster(QObje
: QGeoSatelliteInfoSource(parent), QGeoclueMaster(this), m_sat(0), m_error(NoError),
m_satellitesChangedConnected(false), m_running(false)
{
qRegisterMetaType<QList<QGeoSatelliteInfo> >("QList<QGeoSatelliteInfo>");
m_requestTimer.setSingleShot(true);
connect(&m_requestTimer, SIGNAL(timeout()), this, SLOT(requestUpdateTimeout()));
}
Expand Down
Expand Up @@ -71,16 +71,14 @@ class QGeoSatelliteInfoSourceGeoclueMaster : public QGeoSatelliteInfoSource, pub
void stopUpdates() Q_DECL_OVERRIDE;
void requestUpdate(int timeout = 0) Q_DECL_OVERRIDE;

void satelliteChanged(int timestamp, int satellitesUsed, int satellitesVisible,
const QList<int> &usedPrn, const QList<QGeoSatelliteInfo> &satInfos);

void requestUpdateFinished(int timestamp, int satellitesUsed, int satellitesVisible,
const QList<int> &usedPrn, const QList<QGeoSatelliteInfo> &satInfos);

private slots:
void requestUpdateTimeout();
void positionProviderChanged(const QByteArray &service, const QByteArray &path);
void satellitesChanged(const QDBusMessage &message);
void satelliteChanged(int timestamp, int satellitesUsed, int satellitesVisible,
const QList<int> &usedPrn, const QList<QGeoSatelliteInfo> &satInfos);
void requestUpdateFinished(int timestamp, int satellitesUsed, int satellitesVisible,
const QList<int> &usedPrn, const QList<QGeoSatelliteInfo> &satInfos);

private:
bool configureSatelliteSource();
Expand Down

0 comments on commit 7b51310

Please sign in to comment.